Class FileFormatter
A file Format helper.
public static class FileFormatter
- Inheritance
-
FileFormatter
- Inherited Members
Methods
FormatBytes(long)
Takes a long integer representing the size of a file in bytes as input and formats it into a string that includes the appropriate units (B, KB, MB, GB, or TB)
public static string FormatBytes(long bytes)
Parameters
bytes
longthe size of a file in bytes as input and formats it into a string
Returns
- string
A string that includes the appropriate units (B, KB, MB, GB, or TB)