How to get minimal absolute path from relative path without any permission checks?
问题 Say, I have two path strings, an absolute one such as @"C:\abc\xyz" , and a relative one such as @"..\def" . How do I reliably combine those to yield the minimal form @"C:\abc\def" ? As the process should work for any forms of path that .NET's I/O API supports (i.e. the native paths of the system that .NET or Mono is currently running on, or alternatively something like UNC paths and the like), manual string manipulation seems to be too unreliably a solution. In general, the tidy way to