Struct FilePatternMatch
- Namespace
- Acuit.Pinpoint.FileSystemGlobbing
- Assembly
- Acuit.Pinpoint.Configuration.dll
Represents a file that was matched by searching using a globbing pattern
public struct FilePatternMatch : IEquatable<FilePatternMatch>
- Implements
- Inherited Members
Constructors
FilePatternMatch(string, string)
Initializes new instance of FilePatternMatch
public FilePatternMatch(string path, string stem)
Parameters
Properties
Path
The path to the file matched
public string Path { get; }
Property Value
Remarks
If the matcher searched for "**/*.cs" using "src/Project" as the directory base and the pattern matcher found "src/Project/Interfaces/IFile.cs", then Stem = "Interfaces/IFile.cs" and Path = "src/Project/Interfaces/IFile.cs".
Stem
The subpath to the matched file under the base directory searched
public string Stem { get; }
Property Value
Remarks
If the matcher searched for "**/*.cs" using "src/Project" as the directory base and the pattern matcher found "src/Project/Interfaces/IFile.cs", then Stem = "Interfaces/IFile.cs" and Path = "src/Project/Interfaces/IFile.cs".
Methods
Equals(FilePatternMatch)
Determines if the specified match is equivalent to the current match using a case-insensitive comparison.
public bool Equals(FilePatternMatch other)
Parameters
other
FilePatternMatchThe other match to be compared
Returns
Equals(object)
Determines if the specified object is equivalent to the current match using a case-insensitive comparison.
public override bool Equals(object obj)
Parameters
obj
objectThe object to be compared
Returns
- bool
True when Equals(FilePatternMatch)
GetHashCode()
Gets a hash for the file pattern match.
public override int GetHashCode()
Returns
- int
Some number