namespace Microsoft.Extensions.FileSystemGlobbing {
public struct FilePatternMatch : IEquatable<FilePatternMatch> {
- public FilePatternMatch(string path, string stem);
+ public FilePatternMatch(string path, string? stem);
- public string Stem { get; }
+ public string? Stem { get; }
- public override bool Equals(object obj);
+ public override bool Equals(object? obj);
}
public class InMemoryDirectoryInfo : DirectoryInfoBase {
- public InMemoryDirectoryInfo(string rootDir, IEnumerable<string> files);
+ public InMemoryDirectoryInfo(string rootDir, IEnumerable<string>? files);
- public override DirectoryInfoBase ParentDirectory { get; }
+ public override DirectoryInfoBase? ParentDirectory { get; }
- public override FileInfoBase GetFile(string path);
+ public override FileInfoBase? GetFile(string path);
}
public static class MatcherExtensions {
- public static PatternMatchingResult Match(this Matcher matcher, IEnumerable<string> files);
+ public static PatternMatchingResult Match(this Matcher matcher, IEnumerable<string>? files);
- public static PatternMatchingResult Match(this Matcher matcher, string rootDir, IEnumerable<string> files);
+ public static PatternMatchingResult Match(this Matcher matcher, string rootDir, IEnumerable<string>? files);
}
}