mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-14 03:16:40 +10:00
Project: Add SDK
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user