5 out of 5 rated this helpful - Rate this topic

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.

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

  ClassDescription
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCalendarRepresents time in divisions, such as weeks, months, and years.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCharUnicodeInfoRetrieves information about a Unicode character. This class cannot be inherited.
Public classChineseLunisolarCalendarRepresents 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.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCompareInfoImplements a set of methods for culture-sensitive string comparisons.
Public classCultureAndRegionInfoBuilderDefines 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.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCultureInfoProvides 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, and formatting for dates and sort strings.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCultureNotFoundExceptionThe exception thrown when a method is invoked which attempts to construct a culture that is not available on the machine.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsDateTimeFormatInfoProvides culture-specific information about the format of date and time values.
Public classDaylightTimeDefines the period of daylight saving time.
Public classEastAsianLunisolarCalendarRepresents 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.
Public classGregorianCalendarRepresents the Gregorian calendar.
Public classHebrewCalendarRepresents the Hebrew calendar.
Public classHijriCalendarRepresents the Hijri calendar.
Public classIdnMappingSupports the use of non-ASCII characters for Internet domain names. This class cannot be inherited.
Public classJapaneseCalendarRepresents the Japanese calendar.
Public classJapaneseLunisolarCalendarRepresents 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.
Public classJulianCalendarRepresents the Julian calendar.
Public classKoreanCalendarRepresents the Korean calendar.
Public classKoreanLunisolarCalendarRepresents 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.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsNumberFormatInfoProvides culture-specific information for formatting and parsing numeric values.
Public classPersianCalendarRepresents the Persian calendar.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsRegionInfoContains information about the country/region.
Public classSortKeyRepresents the result of mapping a string to its sort key.
Public classSortVersionProvides information about the version of Unicode used to compare and order strings.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsStringInfoProvides functionality to split a string into text elements and to iterate through those text elements.
Public classTaiwanCalendarthe Taiwan calendar.
Public classTaiwanLunisolarCalendarRepresents 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.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsTextElementEnumeratorEnumerates the text elements of a string.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsTextInfoDefines text properties and behaviors, such as casing, that are specific to a writing system.
Public classThaiBuddhistCalendarRepresents the Thai Buddhist calendar.
Public classUmAlQuraCalendarRepresents the Saudi Hijri (Um Al Qura) calendar.
  EnumerationDescription
Public enumerationCalendarAlgorithmTypeSpecifies whether a calendar is solar-based, lunar-based, or lunisolar-based.
Public enumerationSupported by Portable Class LibrarySupported in .NET for Windows Store appsCalendarWeekRuleDefines different rules for determining the first week of the year.
Public enumerationSupported by Portable Class LibrarySupported in .NET for Windows Store appsCompareOptionsDefines the string comparison options to use with CompareInfo.
Public enumerationCultureAndRegionModifiersSpecifies constants that define a CultureAndRegionInfoBuilder object.
Public enumerationCultureTypesDefines the types of culture lists that can be retrieved using the CultureInfo.GetCultures method.
Public enumerationSupported by Portable Class LibrarySupported in .NET for Windows Store appsDateTimeStylesDefines the formatting options that customize string parsing for some date and time parsing methods.
Public enumerationDigitShapesSpecifies the culture-specific display of digits.
Public enumerationGregorianCalendarTypesDefines the different language versions of the Gregorian calendar.
Public enumerationSupported by Portable Class LibrarySupported in .NET for Windows Store appsNumberStylesDetermines the styles permitted in numeric string arguments that are passed to the Parse and TryParse methods of the integral and floating-point numeric types.
Public enumerationSupported by Portable Class LibrarySupported in .NET for Windows Store appsTimeSpanStylesDefines the formatting options that customize string parsing for the TimeSpan.ParseExact and TimeSpan.TryParseExact methods.
Public enumerationSupported by Portable Class LibrarySupported in .NET for Windows Store appsUnicodeCategoryDefines the Unicode category of a character.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.