mirror of
https://github.com/kwsch/pkNX.git
synced 2026-05-16 08:39:47 -05:00
25 lines
573 B
C#
25 lines
573 B
C#
using System;
|
|
|
|
namespace pkNX.Containers.VFS;
|
|
|
|
public class VirtualFile : FileSystemEntity, IEquatable<VirtualFile>
|
|
{
|
|
public VirtualFile(IFileSystem fileSystem, FileSystemPath path) :
|
|
base(fileSystem, path)
|
|
{
|
|
if (!path.IsFile)
|
|
throw new ArgumentException("The specified path is no file.", nameof(path));
|
|
}
|
|
|
|
public bool Equals(VirtualFile? other)
|
|
{
|
|
return ((IEquatable<FileSystemEntity>)this).Equals(other);
|
|
}
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
return Equals(obj as VirtualFile);
|
|
}
|
|
}
|
|
|