Method HumanReadableUnits
HumanReadableUnits(Int64)
Returns size
in human-readable units (GB, MB, KB or bytes).
Declaration
public static string HumanReadableUnits(long bytes)
Parameters
Type |
Name |
Description |
System.Int64 |
bytes |
|
Returns
Type |
Description |
System.String |
|
Returns size
in human-readable units (GB, MB, KB or bytes).
Declaration
public static string HumanReadableUnits(long bytes, IFormatProvider df)
Parameters
Type |
Name |
Description |
System.Int64 |
bytes |
|
IFormatProvider |
df |
|
Returns
Type |
Description |
System.String |
|