System.Globalization
TOC
Collapse the table of content
Expand the table of content

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_pubclassCalendar

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

System_CAPS_pubclassCharUnicodeInfo

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

System_CAPS_pubclassChineseLunisolarCalendar

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_pubclassCompareInfo

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

System_CAPS_pubclassCultureAndRegionInfoBuilder

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_pubclassCultureInfo

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_pubclassCultureNotFoundException

The exception that is thrown when a method is invoked which attempts to construct a culture that is not available on the machine.

System_CAPS_pubclassDateTimeFormatInfo

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

System_CAPS_pubclassDaylightTime

Defines the period of daylight saving time.

System_CAPS_pubclassEastAsianLunisolarCalendar

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_pubclassGregorianCalendar

Represents the Gregorian calendar.

System_CAPS_pubclassHebrewCalendar

Represents the Hebrew calendar.

System_CAPS_pubclassHijriCalendar

Represents the Hijri calendar.

System_CAPS_pubclassIdnMapping

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

System_CAPS_pubclassJapaneseCalendar

Represents the Japanese calendar.

System_CAPS_pubclassJapaneseLunisolarCalendar

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_pubclassJulianCalendar

Represents the Julian calendar.

System_CAPS_pubclassKoreanCalendar

Represents the Korean calendar.

System_CAPS_pubclassKoreanLunisolarCalendar

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_pubclassNumberFormatInfo

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

System_CAPS_pubclassPersianCalendar

Represents the Persian calendar.

System_CAPS_pubclassRegionInfo

Contains information about the country/region.

System_CAPS_pubclassSortKey

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

System_CAPS_pubclassSortVersion

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

System_CAPS_pubclassStringInfo

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

System_CAPS_pubclassTaiwanCalendar

the Taiwan calendar.

System_CAPS_pubclassTaiwanLunisolarCalendar

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_pubclassTextElementEnumerator

Enumerates the text elements of a string.

System_CAPS_pubclassTextInfo

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

System_CAPS_pubclassThaiBuddhistCalendar

Represents the Thai Buddhist calendar.

System_CAPS_pubclassUmAlQuraCalendar

Represents the Saudi Hijri (Um Al Qura) calendar.

EnumerationDescription
System_CAPS_pubenumCalendarAlgorithmType

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

System_CAPS_pubenumCalendarWeekRule

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

System_CAPS_pubenumCompareOptions

Defines the string comparison options to use with CompareInfo.

System_CAPS_pubenumCultureAndRegionModifiers

Specifies constants that define a CultureAndRegionInfoBuilder object.

System_CAPS_pubenumCultureTypes

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

System_CAPS_pubenumDateTimeStyles

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

System_CAPS_pubenumDigitShapes

Specifies the culture-specific display of digits.

System_CAPS_pubenumGregorianCalendarTypes

Defines the different language versions of the Gregorian calendar.

System_CAPS_pubenumNumberStyles

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_pubenumTimeSpanStyles

Defines the formatting options that customize string parsing for the TimeSpan.ParseExact and TimeSpan.TryParseExact methods.

System_CAPS_pubenumUnicodeCategory

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
Show:
© 2016 Microsoft