Ejemplo n.º 1
0
 /// <summary>
 /// Returns a full path instance as the combination of this full path with
 /// <paramref name="relativePath"/> appened at the end.
 /// </summary>
 public FullPath Combine(RelativePath relativePath)
 {
     return(new FullPath(PathHelpers.CombinePaths(_path, relativePath.Value)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns <code>true</code> if this path is <paramref name="childPath"/> or a
 /// parent of <paramref name="childPath"/>.
 /// </summary>
 public static bool ContainsPath(this FullPath path, FullPath childPath)
 {
     return(PathHelpers.IsPrefix(path.Value, childPath.Value));
 }
Ejemplo n.º 3
0
 public static bool IsValid(string path)
 {
     return(PathHelpers.IsAbsolutePath(path));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Returns a new relative path instance by appending <paramref name="name"/> to this instance.
 /// </summary>
 public RelativePath CreateChild(string name)
 {
     return(new RelativePath(PathHelpers.CombinePaths(Value, name), name));
 }