Пример #1
0
 public static RelativeFilePath AddExtension(this RelativeFilePath self, string extension)
 {
     return(self.BasePath / self.Name.AddExtension(extension));
 }
Пример #2
0
 public static IFilePath Parse(string relativeOrAbsolutePath)
 {
     return(Path.IsPathRooted(relativeOrAbsolutePath)
                         ? (IFilePath)AbsoluteFilePath.Parse(relativeOrAbsolutePath)
                         : (IFilePath)RelativeFilePath.Parse(relativeOrAbsolutePath));
 }