Class LocalizationServiceExtensions
Extension methods for the ILocalizationService.
public static class LocalizationServiceExtensions
- Inheritance
-
objectLocalizationServiceExtensions
Methods
GetStringFormat(ILocalizationService, string, params object[])
Gets the string by the specified resource key and formats it with the standard string.Format(string, params object[]) method.
public static string GetStringFormat(this ILocalizationService localizationService, string resourceKey, params object[] parameters)
Parameters
localizationServiceILocalizationServiceLocalization service.
resourceKeystringResource key.
parametersobject[]Parameters for the formatting.
Returns
- string
Exceptions
- FormatException
Thrown when the system culture string cannot be formatted with the given
parameters.