Table of Contents

Field FileSizeUnits

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Gets an array of strings representing the units used to express file sizes, ranging from bytes to exabytes. Do not change number of elements and their order, because they are used in SizeToExplorerString(long?, IFormatProvider?) method.

public static string[] FileSizeUnits

Returns

string[]
Gets an array of strings representing the units used to express file sizes, ranging from bytes to exabytes. Do not change number of elements and their order, because they are used in method.

Remarks

This array can be used to format file sizes in a human-readable form by selecting the appropriate unit based on the file size value. The first element is an empty string, which typically represents bytes, followed by units for kilobytes (KB), megabytes (MB), gigabytes (GB), terabytes (TB), petabytes (PB), and exabytes (EB).