CultureInfo.InvariantCulture Property
Gets the CultureInfo that is culture-independent (invariant).
[Visual Basic] Public Shared ReadOnly Property InvariantCulture As CultureInfo [C#] public static CultureInfo InvariantCulture {get;} [C++] public: __property static CultureInfo* get_InvariantCulture(); [JScript] public static function get InvariantCulture() : CultureInfo;
Property Value
The CultureInfo that is culture-independent (invariant).
Remarks
The invariant culture is culture-insensitive. You can specify the invariant culture by name using an empty string ("") or by its culture identifier 0x007F. InvariantCulture retrieves an instance of the invariant culture. It is associated with the English language but not with any country/region. It can be used in almost any method in the Globalization namespace that requires a culture. If a security decision depends on a string comparison or a case-change operation, use the InvariantCulture to ensure that the behavior will be consistent regardless of the culture settings of the system. However, the invariant culture must be used only by processes that require culture-independent results, such as system services; otherwise, it produces results that might be linguistically incorrect or culturally inappropriate.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
See Also
CultureInfo Class | CultureInfo Members | System.Globalization Namespace | CurrentCulture | CurrentUICulture | InstalledUICulture | Parent | IsNeutralCulture