C# Class DbLocalizationProvider.LocalizationProvider

Show file Open project: valdisiljuconoks/LocalizationProvider Class Usage Examples

Public Methods

Method Description
GetString ( string resourceKey ) : string
GetString ( string resourceKey, CultureInfo culture ) : string
GetStringByCulture ( Expression resource, CultureInfo culture ) : string
GetStringByCulture ( string resourceKey, CultureInfo culture ) : string

Private Methods

Method Description
Format ( string message ) : string
FormatWithAnonymousObject ( string message, object model ) : string
LocalizationProvider ( ) : System

Method Details

GetString() public method

public GetString ( string resourceKey ) : string
resourceKey string
return string

GetString() public method

public GetString ( string resourceKey, CultureInfo culture ) : string
resourceKey string
culture System.Globalization.CultureInfo
return string

GetStringByCulture() public method

public GetStringByCulture ( Expression resource, CultureInfo culture ) : string
resource Expression
culture System.Globalization.CultureInfo
return string

GetStringByCulture() public method

public GetStringByCulture ( string resourceKey, CultureInfo culture ) : string
resourceKey string
culture System.Globalization.CultureInfo
return string