C# Class NCldr.Extensions.NCldrCustomCulture

NCldrCustomCulture is a custom culture helper class for creating NCLDR custom cultures
Exibir arquivo Open project: GuySmithFerrier/NCLDR

Public Methods

Method Description
CreateNCldrCultureAndRegionInfoBuilder ( string cldrCultureName, string dotNetCultureName ) : System.Globalization.CultureAndRegionInfoBuilder

Creates a CultureAndRegionInfoBuilder object for the NCLDR culture

Register ( string cldrCultureName, string dotNetCultureName ) : void

Registers the NCLDR culture

Private Methods

Method Description
CreateDateTimeFormatInfo ( Culture culture ) : DateTimeFormatInfo

CreateDateTimeFormatInfo creates a .NET DateTimeFormatInfo for the CLDR Culture

CreateNumberFormatInfo ( Culture culture ) : NumberFormatInfo

CreateNumberFormatInfo creates a .NET NumberFormatInfo for the CLDR Culture

GetAvailableCalendars ( Culture culture ) : System.Globalization.Calendar[]

GetAvailableCalendars gets an array of .NET calendars available to the Culture

The list is filtered to include only those .NET Calendars that can be used with custom cultures

GetCalendar ( Types calendar ) : Calendar

GetCalendar returns a .NET Calendar equivalent to a CLDR Calendar

GetParentCultureInfo ( Culture culture ) : CultureInfo

GetParentCultureInfo gets the .NET CultureInfo parent of the NCLDR culture

Method Details

CreateNCldrCultureAndRegionInfoBuilder() public static method

Creates a CultureAndRegionInfoBuilder object for the NCLDR culture
public static CreateNCldrCultureAndRegionInfoBuilder ( string cldrCultureName, string dotNetCultureName ) : System.Globalization.CultureAndRegionInfoBuilder
cldrCultureName string The name of the CLDR culture from which to create the .NET culture
dotNetCultureName string The name of the .NET custom culture to create
return System.Globalization.CultureAndRegionInfoBuilder

Register() public static method

Registers the NCLDR culture
public static Register ( string cldrCultureName, string dotNetCultureName ) : void
cldrCultureName string The name of the CLDR culture from which to create the .NET culture
dotNetCultureName string The name of the .NET custom culture to create
return void