public MatcherContext(IEnumerable <IPattern> includePatterns, IEnumerable <IPattern> excludePatterns, DirectoryInfoBase directoryInfo, StringComparison comparison) { _root = directoryInfo; _files = new List <FilePatternMatch>(); _comparisonType = comparison; _includePatternContexts = includePatterns.Select(pattern => pattern.CreatePatternContextForInclude()).ToList(); _excludePatternContexts = excludePatterns.Select(pattern => pattern.CreatePatternContextForExclude()).ToList(); _declaredLiteralFolderSegmentInString = new HashSet <string>(StringComparisonHelper.GetStringComparer(comparison)); }
public override int GetHashCode() { return(StringComparisonHelper.GetStringComparer(_comparisonType).GetHashCode(Value)); }