System.Globalization.CultureInfo.ToString Method

Returns a string containing the name of the current System.Globalization.CultureInfo in the format languagecode2-country/regioncode2.


public override string ToString ()


A string containing the name of the current System.Globalization.CultureInfo.


This method overrides object.ToString. It returns a normalized version of the culture name that is passed to the CultureInfo.#ctor(string) or CultureInfo.#ctor(string, bool) constructor or to the CultureInfo.CreateSpecificCulture(string) or CultureInfo.GetCultureInfo(string) method. It normalizes the result string by converting characters in languagecode2 to lowercase and converting characters in country/regioncode2 to uppercase if necessary.

Predefined culture names are listed in the tp:// page at the Go Global Developer Center.


Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,