Table of Contents

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

path string

The path to the matched file

stem string

The stem

Properties

Path

The path to the file matched

public string Path { get; }

Property Value

string

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

string

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 FilePatternMatch

The other match to be compared

Returns

bool

True if Path and Stem are equal using case-insensitive comparison

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 object

The 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