System.Globalization.CultureInfo.ToString Method

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

Syntax

public override string ToString ()

Returns

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

Remarks

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://go.microsoft.com/fwlink/?LinkId=200048 page at the Go Global Developer Center.

Requirements

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