C# Class BF2Statistics.FileSizeFormatProvider

Provides an easy way to format numbers into file sizes
Credits to http://blog.flimflan.com/FileSizeFormatProvider.html
Inheritance: IFormatProvider, ICustomFormatter
Mostra file Open project: BF2Statistics/ControlCenter

Public Methods

Method Description
Format ( string format, object arg, IFormatProvider formatProvider ) : string
GetFormat ( Type formatType ) : object

Private Methods

Method Description
defaultFormat ( string format, object arg, IFormatProvider formatProvider ) : string

Method Details

Format() public method

public Format ( string format, object arg, IFormatProvider formatProvider ) : string
format string
arg object
formatProvider IFormatProvider
return string

GetFormat() public method

public GetFormat ( Type formatType ) : object
formatType System.Type
return object