Get ful path from model on-the-fly to reduce memory consumsion

This commit is contained in:
rlv-dan
2020-04-28 19:12:04 +02:00
parent 688652a703
commit a622e419a1
2 changed files with 10 additions and 7 deletions

View File

@ -47,15 +47,18 @@ namespace Snap2HTML
this.Path = path;
this.Properties = new Dictionary<string, string>();
this.Files = new List<SnappedFile>();
this.FullPath = ( this.Path + "\\" + this.Name ).Replace( "\\\\", "\\" );
}
public string Name { get; set; }
public string Path { get; set; }
public string FullPath { get; set; }
public Dictionary<string, string> Properties { get; set; }
public List<SnappedFile> Files { get; set; }
public string GetFullPath()
{
return ( this.Path + "\\" + this.Name ).Replace( "\\\\", "\\" );
}
public string GetProp( string key )
{
if( this.Properties.ContainsKey( key ) )