C# Class FileSize, Clippy

Afficher le fichier Open project: 24hr/Clippy Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
ValidateFileInfo ( FileInfo file ) : void

Method Details

KibiFileSize() public static méthode

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
Résultat string

KiloFileSize() public static méthode

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
Résultat string

ToKibiFileSize() public static méthode

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
Résultat string

ToKiloFileSize() public static méthode

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
Résultat string