C# Класс FileSize, Clippy

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
KibiFileSize ( this file, string numberFormat = "0.##", IFormatProvider format = null ) : string

Returns a formatted string representing the file size in a human readable format using 1024 as power. http://en.wikipedia.org/wiki/Kibibyte

KiloFileSize ( this file, string numberFormat = "0.##", IFormatProvider format = null ) : string

Returns a formatted string representing the file size in a human readable format using 1000 as power.

http://en.wikipedia.org/wiki/Kilobyte

ToKibiFileSize ( this length, string numberFormat = "0.##", IFormatProvider formatProvider = null ) : string

Returns a string formatted to represent a file size using multiplication of 1024 as power

http://en.wikipedia.org/wiki/Kibibyte

ToKiloFileSize ( this length, string numberFormat = "0.##", IFormatProvider formatProvider = null ) : string

Returns a string formatted to represent file size using multiplication of 1000 as power.

http://en.wikipedia.org/wiki/Kilobyte

Приватные методы

Метод Описание
ValidateFileInfo ( FileInfo file ) : void

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

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

Returns a formatted string representing the file size in a human readable format using 1024 as power. http://en.wikipedia.org/wiki/Kibibyte
public static KibiFileSize ( this file, string numberFormat = "0.##", IFormatProvider format = null ) : string
file this
numberFormat string
format IFormatProvider
Результат string

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

Returns a formatted string representing the file size in a human readable format using 1000 as power.
http://en.wikipedia.org/wiki/Kilobyte
public static KiloFileSize ( this file, string numberFormat = "0.##", IFormatProvider format = null ) : string
file this
numberFormat string
format IFormatProvider
Результат string

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

Returns a string formatted to represent a file size using multiplication of 1024 as power
http://en.wikipedia.org/wiki/Kibibyte
public static ToKibiFileSize ( this length, string numberFormat = "0.##", IFormatProvider formatProvider = null ) : string
length this
numberFormat string
formatProvider IFormatProvider
Результат string

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

Returns a string formatted to represent file size using multiplication of 1000 as power.
http://en.wikipedia.org/wiki/Kilobyte
public static ToKiloFileSize ( this length, string numberFormat = "0.##", IFormatProvider formatProvider = null ) : string
length this
numberFormat string
formatProvider IFormatProvider
Результат string