C# Class FirstFloor.ModernUI.Helpers.LocalizationHelper

Show file Open project: gro-ove/actools

Public Methods

Method Description
ToMegabytes ( this i ) : double
ToOrdinal ( this value, string subject, CultureInfo culture = null ) : string
ToOrdinalShort ( this value, string subject, CultureInfo culture = null ) : string
ToReadableBoolean ( this value ) : string
ToReadableKey ( this key ) : string
ToReadableSize ( this i, int round = 2 ) : string
ToReadableTime ( this seconds ) : string
ToSentence ( this s ) : string
ToTitle ( this s ) : string

Method Details

ToMegabytes() public static method

public static ToMegabytes ( this i ) : double
i this
return double

ToOrdinal() public static method

public static ToOrdinal ( this value, string subject, CultureInfo culture = null ) : string
value this
subject string
culture System.Globalization.CultureInfo
return string

ToOrdinalShort() public static method

public static ToOrdinalShort ( this value, string subject, CultureInfo culture = null ) : string
value this
subject string
culture System.Globalization.CultureInfo
return string

ToReadableBoolean() public static method

public static ToReadableBoolean ( this value ) : string
value this
return string

ToReadableKey() public static method

public static ToReadableKey ( this key ) : string
key this
return string

ToReadableSize() public static method

public static ToReadableSize ( this i, int round = 2 ) : string
i this
round int
return string

ToReadableTime() public static method

public static ToReadableTime ( this seconds ) : string
seconds this
return string

ToSentence() public static method

public static ToSentence ( this s ) : string
s this
return string

ToTitle() public static method

public static ToTitle ( this s ) : string
s this
return string