Exemple #1
0
 /// <summary>
 /// Convert a string path to a Uri
 /// </summary>
 /// <param name="path">relative or absolute path</param>
 /// <returns>normalized URI</returns>
 private Uri /*!*/ PathToUri(string /*!*/ path)
 {
     try {
         return(new Uri(VirtualFilesystem.NormalizePath(path), UriKind.RelativeOrAbsolute));
     } catch (UriFormatException e) {
         throw new ArgumentException("The specified path is invalid", e);
     }
 }
Exemple #2
0
 /// <exception cref="ArgumentException">Invalid path.</exception>
 public override string /*!*/ GetFullPath(string /*!*/ path)
 {
     return(VirtualFilesystem.NormalizePath(path));
 }