System.Globalization.CultureInfo.DefaultThreadCurrentCulture Property

Gets or sets the default culture for threads in the current application domain.


public static CultureInfo DefaultThreadCurrentCulture { get; set; }


Documentation for this section has not yet been entered.


In the net_v40_long and previous versions, by default, the culture of all threads is set to the Windows system culture. For applications whose current culture differs from the default system culture, this behavior is often undesirable. In the net_v45, the CultureInfo.DefaultThreadCurrentCulture property enables an application to define the default culture of all threads in an application domain.


If you have not explicitly set the culture of any existing threads executing in an application domain, setting the CultureInfo.DefaultThreadCurrentCulture property also changes the culture of these threads. However, if these threads execute in another application domain, their culture is defined by the CultureInfo.DefaultThreadCurrentCulture property in that application domain or, if no default value is defined, by the default system culture. Because of this, we recommend that you always explicitly set the culture of your main application thread, and not rely on the CultureInfo.DefaultThreadCurrentCulture property to define the culture of the main application thread.

Unless it is set explicitly, the value of the CultureInfo.DefaultThreadCurrentCulture property is null, and the culture of threads in an application domain that have not been assigned an explicit culture is defined by the default Windows system culture.

For more information about cultures, threads, and application domains, see the "Culture and Threads" and "Culture and Application Domains" sections in the System.Globalization.CultureInfo class topic.


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