Class CultureHelper
Provides the global methods for culture helping operations.
public class CultureHelper : AbstractHelper<CultureHelper>
- Inheritance
-
objectCultureHelper
- Inherited Members
- Extension Methods
Methods
GetCultureInfo(string)
Gets the culture info for specified culture. If culture code is invalid, then system culture is returned.
public static CultureInfo GetCultureInfo(string cultureCode)
Parameters
cultureCode
stringCulture code
Returns
- CultureInfo
GetDefaultCultureCode()
Returns the default culture code.
public static string GetDefaultCultureCode()
Returns
- string
GetDefaultCultureCodeInternal()
Returns the default culture code.
protected virtual string GetDefaultCultureCodeInternal()
Returns
- string
- See Also
IsValidCultureInfoName(string)
Check if culture code is valid DotNet culture code (All cultures that ship with the .NET Framework, including neutral and specific cultures, cultures installed in the Windows operating system, and custom cultures created by the user).
public static bool IsValidCultureInfoName(string cultureCode)
Parameters
cultureCode
stringCulture code
Returns
- bool