Project: Add SDK

This commit is contained in:
Gustave Monce
2021-08-14 11:24:02 +02:00
parent 452393aaa7
commit 846ea41883
42 changed files with 3214 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
using System;
namespace WPinternalsSDK
{
public class File : FileSystemEntry
{
public File(string Path, FileAttributes Attributes) : base(Path, Attributes)
{
}
public ulong Size
{
get
{
if (!this.sizeQueried)
{
this.size = FileSystem.GetFileSize(base.Path);
}
return this.size;
}
internal set
{
this.size = value;
this.sizeQueried = true;
}
}
public override string ToString()
{
return base.Path;
}
private bool sizeQueried;
private ulong size;
}
}