Convert byte count to largest whole unit of measurement in human readable format (i.e. x MB, x KB, x GB, x TB, x PB, x EB etc etc up to Geopbytes)

Namespace: GZTW.AyaNova.BLL
Assembly: GZTW.AyaNova.BLL (in GZTW.AyaNova.BLL.dll) Version: 7.0.0.0 (7.0.0.0)

Syntax

C#
public static string FileSizeDisplay(
	decimal dBytes
)
Visual Basic
Public Shared Function FileSizeDisplay ( _
	dBytes As Decimal _
) As String
Visual C++
public:
static String^ FileSizeDisplay(
	Decimal dBytes
)

Parameters

dBytes
Type: System..::..Decimal
Number of bytes

Return Value

A compact human readable string representation of byte count

See Also