This documentation is archived and is not being maintained.

System.Globalization Namespace

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

Namespace hierarchy


Class Description
Calendar Represents time in divisions, such as weeks, months, and years.
CompareInfo Implements a set of methods for culture-sensitive string comparisons.
CultureInfo Represents information about a specific culture including the names of the culture, the writing system, and the calendar used, as well as access to culture-specific objects that provide information for common operations, such as formatting dates and sorting strings.
DateTimeFormatInfo Defines how DateTime values are formatted and displayed, depending on the culture.
DaylightTime Defines the period of daylight-saving time.
GregorianCalendar Represents the Gregorian calendar.
HebrewCalendar Represents the Hebrew calendar.
HijriCalendar Represents the Hijri calendar.
JapaneseCalendar Represents the Japanese calendar.
JulianCalendar Represents the Julian calendar.
KoreanCalendar Represents the Korean calendar.
NumberFormatInfo Defines how numeric values are formatted and displayed, depending on the culture.
RegionInfo Contains information about the country/region.
SortKey Represents the result of mapping a string to its sort key.
StringInfo Provides functionality to split a string into text elements and to iterate through those text elements.
TaiwanCalendar Represents the Taiwan Calendar.
TextElementEnumerator Enumerates the text elements of a string.
TextInfo Defines properties and behaviors, such as casing, that are specific to a writing system.
ThaiBuddhistCalendar Represents the Thai Buddhist calendar.


Enumeration Description
CalendarWeekRule Defines different rules for determining the first week of the year.
CompareOptions Defines the string comparison options to use with CompareInfo.
CultureTypes Defines the types of culture lists that can be retrieved using CultureInfo.GetCultures.
DateTimeStyles Defines the formatting options that customize how the DateTime.Parse and DateTime.ParseExact methods parse a string.
GregorianCalendarTypes Defines the different language versions of the Gregorian calendar.
NumberStyles Determines the styles permitted in numeric string arguments that are passed to the Parse methods of the numeric base type classes.
UnicodeCategory Defines the Unicode category of a character.

See Also

.NET Framework Class Library