public override int GetHashCode([DisallowNull] StorageSection obj) { string?path = obj.FileMatch?.Path; if (path == null) { return(0); } return(FileSystemHelpers.Comparer.GetHashCode(path)); }
public override bool Equals([AllowNull] StorageSection x, [AllowNull] StorageSection y) { return(FileSystemHelpers.Comparer.Equals(x.FileMatch?.Path, y.FileMatch?.Path)); }