This documentation is archived and is not being maintained.

CultureInfo.InvariantCulture Property

Gets the CultureInfo that is culture-independent (invariant).

[Visual Basic]
Public Shared ReadOnly Property InvariantCulture As CultureInfo
public static CultureInfo InvariantCulture {get;}
public: __property static CultureInfo* get_InvariantCulture();
public static function get InvariantCulture() : CultureInfo;

Property Value

The CultureInfo that is culture-independent (invariant).


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.


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