Export (0) Print
Expand All

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:

  Class Description
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps Calendar Represents time in divisions, such as weeks, months, and years.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps CharUnicodeInfo Retrieves information about a Unicode character. This class cannot be inherited.
Public class 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.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps CompareInfo Implements a set of methods for culture-sensitive string comparisons.
Public class 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.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps 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, and formatting for dates and sort strings.To browse the .NET Framework source code for this type, see the Reference Source.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps CultureNotFoundException The exception thrown when a method is invoked which attempts to construct a culture that is not available on the machine.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps DateTimeFormatInfo Provides culture-specific information about the format of date and time values.
Public class DaylightTime Defines the period of daylight saving time.
Public class 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.
Public class GregorianCalendar Represents the Gregorian calendar.
Public class HebrewCalendar Represents the Hebrew calendar.
Public class HijriCalendar Represents the Hijri calendar.
Public class IdnMapping Supports the use of non-ASCII characters for Internet domain names. This class cannot be inherited.
Public class JapaneseCalendar Represents the Japanese calendar.
Public class 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.
Public class JulianCalendar Represents the Julian calendar.
Public class KoreanCalendar Represents the Korean calendar.
Public class 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.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps NumberFormatInfo Provides culture-specific information for formatting and parsing numeric values.
Public class PersianCalendar Represents the Persian calendar.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps RegionInfo Contains information about the country/region.
Public class SortKey Represents the result of mapping a string to its sort key.
Public class SortVersion Provides information about the version of Unicode used to compare and order strings.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps StringInfo Provides functionality to split a string into text elements and to iterate through those text elements.
Public class TaiwanCalendar the Taiwan calendar.
Public class 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.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps TextElementEnumerator Enumerates the text elements of a string.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps TextInfo Defines text properties and behaviors, such as casing, that are specific to a writing system.
Public class ThaiBuddhistCalendar Represents the Thai Buddhist calendar.
Public class UmAlQuraCalendar Represents the Saudi Hijri (Um Al Qura) calendar.

  Enumeration Description
Public enumeration CalendarAlgorithmType Specifies whether a calendar is solar-based, lunar-based, or lunisolar-based.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps CalendarWeekRule Defines different rules for determining the first week of the year.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps CompareOptions Defines the string comparison options to use with CompareInfo.
Public enumeration CultureAndRegionModifiers Specifies constants that define a CultureAndRegionInfoBuilder object.
Public enumeration CultureTypes Defines the types of culture lists that can be retrieved using the CultureInfo.GetCultures method.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps DateTimeStyles Defines the formatting options that customize string parsing for some date and time parsing methods.
Public enumeration DigitShapes Specifies the culture-specific display of digits.
Public enumeration GregorianCalendarTypes Defines the different language versions of the Gregorian calendar.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps 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.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps TimeSpanStyles Defines the formatting options that customize string parsing for the TimeSpan.ParseExact and TimeSpan.TryParseExact methods.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps UnicodeCategory Defines the Unicode category of a character.
Show:
© 2014 Microsoft