Interface IPath<TPath>
- Namespace
- TruePath
- Assembly
- TruePath.dll
Represents a path in a file system. Allows generic operators to be applied.
public interface IPath<TPath> where TPath : IPath<TPath>
Type Parameters
TPathThe type of this path.
Methods
IsPrefixOf(TPath)
bool IsPrefixOf(TPath other)
Parameters
otherTPath
Returns
Remarks
Checks for a non-strict prefix: if the paths are equal, then they are still considered prefixes of each other, so every path is a prefix of itself.
StartsWith(TPath)
Determines whether the current path starts with the specified path.
bool StartsWith(TPath other)
Parameters
otherTPathThe path to compare to the current path.
Returns
Remarks
Checks for a non-strict prefix: if the paths are equal, then each still starts with the other, so every path starts with itself.