System.Globalization.CultureInfo.CurrentCulture Property

Gets the System.Globalization.CultureInfo object that represents the culture used by the current thread.


public static CultureInfo CurrentCulture { get; }



Initial value for each thread is determined using following rules. When CultureInfo.DefaultThreadCurrentCulture is set its value is used otherwise the framework uses CultureInfo.CreateSpecificCulture method to map system locate to framework culture name. This operation may fail in rare cases when system locale is set to invalid value or to value which cannot be translated to framework culture name. In such case CultureInfo.InvariantCulture values is used.


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