Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
FileInformation.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Threading.Tasks;
5
7{
11 public class FileInformation
12 {
13 private readonly string name;
14 private readonly DateTime created;
15 private readonly long size;
16 private readonly string sizeStr;
17
25 public FileInformation(string Name, DateTime Created, long Size, string SizeStr)
26 {
27 this.name = Name;
28 this.created = Created;
29 this.size = Size;
30 this.sizeStr = SizeStr;
31 }
32
36 public string Name => this.name;
37
41 public DateTime Created => this.created;
42
46 public long Size => this.size;
47
51 public string SizeStr => this.sizeStr;
52
56 public bool IsKey
57 {
58 get { return this.name.EndsWith(".key", StringComparison.CurrentCultureIgnoreCase); }
59 }
60 }
61}
Class containing information about a file.
FileInformation(string Name, DateTime Created, long Size, string SizeStr)
Class containing information about a file.
string SizeStr
Formatted string containing size of file using appropriate unit