Метод | Описание | |
---|---|---|
ToAbbreviatedFileSize ( this lengthInBytes, int maxPrecision = 2, FileSizeUnitAbbreviation fileSizeUnitAbbreviation = null ) : string | ||
ToFileSize ( this lengthInBytes, int maxPrecision = 2, FileSizeUnitName fileSizeUnitName = null ) : string |
Метод | Описание | |
---|---|---|
ConvertBytesTo ( this lengthInBytes, FileSizeUnitAbbreviation unitAbbreviation ) : decimal | ||
ConvertBytesTo ( this lengthInBytes, FileSizeUnitName unitName ) : decimal | ||
GetPrecision ( this size, int maxPrecision ) : int | ||
GetSizeFormat ( this precision ) : string | ||
GetSmartUnitAbbreviation ( this lengthInBytes ) : FileSizeUnitAbbreviation | ||
GetSmartUnitName ( this lengthInBytes ) : FileSizeUnitName | ||
GetUnitText ( this unit, string sizeText ) : string |
public static ToAbbreviatedFileSize ( this lengthInBytes, int maxPrecision = 2, FileSizeUnitAbbreviation fileSizeUnitAbbreviation = null ) : string | ||
lengthInBytes | this | |
maxPrecision | int | |
fileSizeUnitAbbreviation | FileSizeUnitAbbreviation | |
Результат | string |
public static ToFileSize ( this lengthInBytes, int maxPrecision = 2, FileSizeUnitName fileSizeUnitName = null ) : string | ||
lengthInBytes | this | |
maxPrecision | int | |
fileSizeUnitName | FileSizeUnitName | |
Результат | string |