System.Globalization Namespace
 

The System.Globalization namespace contains classes that define culture-related information, including language, country/region, calendars in use, format patterns for dates, currency, and numbers, and sort order for strings. These classes are useful for writing globalized (internationalized) applications. Classes such as StringInfo and TextInfo provide advanced globalization functionalities, including surrogate support and text element processing.

ClassDescription
System_CAPS_pubclass Calendar

Represents time in divisions, such as weeks, months, and years.

System_CAPS_pubclass CharUnicodeInfo

Retrieves information about a Unicode character. This class cannot be inherited.

System_CAPS_pubclass ChineseLunisolarCalendar

Represents time in divisions, such as months, days, and years. Years are calculated using the Chinese calendar, while days and months are calculated using the lunisolar calendar.

System_CAPS_pubclass CompareInfo

Implements a set of methods for culture-sensitive string comparisons.

System_CAPS_pubclass CultureAndRegionInfoBuilder

Defines a custom culture that is new or based on another culture and country/region. The custom culture can be installed on a computer and subsequently used by any application that is running on that computer. This class cannot be inherited.

System_CAPS_pubclass CultureInfo

Provides information about a specific culture (called a locale for unmanaged code development). The information includes the names for the culture, the writing system, the calendar used, the sort order of strings, and formatting for dates and numbers.

System_CAPS_pubclass CultureNotFoundException

The exception that is thrown when a method attempts to construct a culture that is not available.

System_CAPS_pubclass DateTimeFormatInfo

Provides culture-specific information about the format of date and time values.

System_CAPS_pubclass DaylightTime

Defines the period of daylight saving time.

System_CAPS_pubclass EastAsianLunisolarCalendar

Represents a calendar that divides time into months, days, years, and eras, and has dates that are based on cycles of the sun and the moon.

System_CAPS_pubclass GregorianCalendar

Represents the Gregorian calendar.

System_CAPS_pubclass HebrewCalendar

Represents the Hebrew calendar.

System_CAPS_pubclass HijriCalendar

Represents the Hijri calendar.

System_CAPS_pubclass IdnMapping

Supports the use of non-ASCII characters for Internet domain names. This class cannot be inherited.

System_CAPS_pubclass JapaneseCalendar

Represents the Japanese calendar.

System_CAPS_pubclass JapaneseLunisolarCalendar

Represents time in divisions, such as months, days, and years. Years are calculated as for the Japanese calendar, while days and months are calculated using the lunisolar calendar.

System_CAPS_pubclass JulianCalendar

Represents the Julian calendar.

System_CAPS_pubclass KoreanCalendar

Represents the Korean calendar.

System_CAPS_pubclass KoreanLunisolarCalendar

Represents time in divisions, such as months, days, and years. Years are calculated using the Gregorian calendar, while days and months are calculated using the lunisolar calendar.

System_CAPS_pubclass NumberFormatInfo

Provides culture-specific information for formatting and parsing numeric values.

System_CAPS_pubclass PersianCalendar

Represents the Persian calendar.

System_CAPS_pubclass RegionInfo

Contains information about the country/region.

System_CAPS_pubclass SortKey

Represents the result of mapping a string to its sort key.

System_CAPS_pubclass SortVersion

Provides information about the version of Unicode used to compare and order strings.

System_CAPS_pubclass StringInfo

Provides functionality to split a string into text elements and to iterate through those text elements.

System_CAPS_pubclass TaiwanCalendar

the Taiwan calendar.

System_CAPS_pubclass TaiwanLunisolarCalendar

Represents the Taiwan lunisolar calendar. As for the Taiwan calendar, years are calculated using the Gregorian calendar, while days and months are calculated using the lunisolar calendar.

System_CAPS_pubclass TextElementEnumerator

Enumerates the text elements of a string.

System_CAPS_pubclass TextInfo

Defines text properties and behaviors, such as casing, that are specific to a writing system.

System_CAPS_pubclass ThaiBuddhistCalendar

Represents the Thai Buddhist calendar.

System_CAPS_pubclass UmAlQuraCalendar

Represents the Saudi Hijri (Um Al Qura) calendar.

EnumerationDescription
System_CAPS_pubenum CalendarAlgorithmType

Specifies whether a calendar is solar-based, lunar-based, or lunisolar-based.

System_CAPS_pubenum CalendarWeekRule

Defines different rules for determining the first week of the year.

System_CAPS_pubenum CompareOptions

Defines the string comparison options to use with CompareInfo.

System_CAPS_pubenum CultureAndRegionModifiers

Specifies constants that define a CultureAndRegionInfoBuilder object.

System_CAPS_pubenum CultureTypes

Defines the types of culture lists that can be retrieved using the CultureInfoGetCultures method.

System_CAPS_pubenum DateTimeStyles

Defines the formatting options that customize string parsing for some date and time parsing methods.

System_CAPS_pubenum DigitShapes

Specifies the culture-specific display of digits.

System_CAPS_pubenum GregorianCalendarTypes

Defines the different language versions of the Gregorian calendar.

System_CAPS_pubenum NumberStyles

Determines the styles permitted in numeric string arguments that are passed to the Parse and TryParse methods of the integral and floating-point numeric types.

System_CAPS_pubenum TimeSpanStyles

Defines the formatting options that customize string parsing for the TimeSpanParseExact and TimeSpanTryParseExact methods.

System_CAPS_pubenum UnicodeCategory

Defines the Unicode category of a character.

The following MSDN blogs include discussions of the System.Globalization namespace and its classes:

Note that two of the types in this namespace, CultureAndRegionInfoBuilder and CultureAndRegionModifiers, are found in an assembly named sysglobl.dll. Successfully compiling code that uses these types requires that you add a reference to sysglobl.dll.

Return to top