Table of Contents

Class FileFormatter

Namespace
AbanoubNassem.Trinity.Utilities
Assembly
AbanoubNassem.Trinity.dll

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 long

the 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)