C# Класс BetterExplorer.FriendlySizeConverter

Contains functionality for presenting the size of a file
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetByteLength ( double size, FileSizeMeasurements type ) : long

Converts a the size of a file in units (FileSizeMeasurements and double) into the number of bytes

GetFriendlySize ( double bytes ) : string

Converts bytes into a user friendly string converted into larger units when desired.

Описание методов

GetByteLength() публичный статический Метод

Converts a the size of a file in units (FileSizeMeasurements and double) into the number of bytes
public static GetByteLength ( double size, FileSizeMeasurements type ) : long
size double
type FileSizeMeasurements
Результат long

GetFriendlySize() публичный статический Метод

Converts bytes into a user friendly string converted into larger units when desired.
public static GetFriendlySize ( double bytes ) : string
bytes double The number of bytes
Результат string