CultureInfo Class |
Namespace: System.Globalization
[SerializableAttribute] public class CultureInfo : ICloneable, IFormatProvider
The CultureInfo type exposes the following members.
Name | Description | |
---|---|---|
![]() | Clone | Creates a copy of the current CultureInfo. |
![]() | Equals | Determines whether the specified object is the same culture as the current CultureInfo. (Overrides ObjectEquals(Object).) |
![]() ![]() | GetCultureInfo(Int32) | Retrieves a cached, read-only instance of a culture by using the specified culture identifier. |
![]() ![]() | GetCultureInfo(String) | Retrieves a cached, read-only instance of a culture by using the specified culture name. |
![]() ![]() | GetCultureInfo(String, String) | Retrieves a cached, read-only instance of a culture. Parameters specify a culture that is initialized with the TextInfo and CompareInfo objects specified by another culture. |
![]() ![]() | GetCultureInfoByIetfLanguageTag | Deprecated. Retrieves a read-only CultureInfo object having linguistic characteristics that are identified by the specified RFC 4646 language tag. |
![]() | GetHashCode | Serves as a hash function for the current CultureInfo, suitable for hashing algorithms and data structures, such as a hash table. (Overrides ObjectGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string containing the name of the current CultureInfo in the format "languagecode2-country/regioncode2". (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
![]() ![]() | CurrentCulture | Gets the CultureInfo that represents the culture used by the current thread. |
![]() ![]() | CurrentUICulture | Gets the CultureInfo that represents the current culture used by the Resource Manager to look up culture-specific resources at run time. |
![]() ![]() | InvariantCulture | Gets the CultureInfo object that is culture-independent (invariant). |
![]() | Name | Gets the culture name in the format "languagecode2-country/regioncode2". |
![]() | TwoLetterISOLanguageName | Gets the ISO 639-1 two-letter code for the language of the current CultureInfo. |
![]() | UseUserOverride | Gets a value indicating whether the current CultureInfo uses the user-selected culture settings. |