namespace Microsoft.Extensions.FileSystemGlobbing.Abstractions {
public abstract class DirectoryInfoBase : FileSystemInfoBase {
- public abstract DirectoryInfoBase GetDirectory(string path);
+ public abstract DirectoryInfoBase? GetDirectory(string path);
- public abstract FileInfoBase GetFile(string path);
+ public abstract FileInfoBase? GetFile(string path);
}
public class DirectoryInfoWrapper : DirectoryInfoBase {
- public override DirectoryInfoBase ParentDirectory { get; }
+ public override DirectoryInfoBase? ParentDirectory { get; }
- public override DirectoryInfoBase GetDirectory(string name);
+ public override DirectoryInfoBase? GetDirectory(string name);
}
public class FileInfoWrapper : FileInfoBase {
- public override DirectoryInfoBase ParentDirectory { get; }
+ public override DirectoryInfoBase? ParentDirectory { get; }
}
public abstract class FileSystemInfoBase {
- public abstract DirectoryInfoBase ParentDirectory { get; }
+ public abstract DirectoryInfoBase? ParentDirectory { get; }
}
}