mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-30 13:16:58 -05:00
Use c#11 features
This commit is contained in:
@@ -5,16 +5,11 @@
|
||||
|
||||
namespace pkNX.Containers.VFS;
|
||||
|
||||
public class ReadOnlyFileSystem : IFileSystem
|
||||
public class ReadOnlyFileSystem(IFileSystem fileSystem) : IFileSystem
|
||||
{
|
||||
public bool IsReadOnly => true;
|
||||
|
||||
public IFileSystem FileSystem { get; }
|
||||
|
||||
public ReadOnlyFileSystem(IFileSystem fileSystem)
|
||||
{
|
||||
FileSystem = fileSystem;
|
||||
}
|
||||
public IFileSystem FileSystem { get; } = fileSystem;
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user