Table of Contents

Class Cultures

Namespace
Excalibur.Application
Assembly
Excalibur.Application.dll

Provides utilities for handling and validating cultures.

public static class Cultures
Inheritance
Cultures
Inherited Members

Fields

DefaultCultureName

The default culture name.

public const string DefaultCultureName = "en-US"

Field Value

string

Properties

Names

Gets the names of all valid cultures.

public static IEnumerable<string> Names { get; }

Property Value

IEnumerable<string>

The names of all valid cultures.

Remarks

This property provides a collection of valid culture names as defined by GetCultures(CultureTypes).

Methods

GetCultureInfo(string)

Gets the CultureInfo for the given culture name.

public static CultureInfo GetCultureInfo(string cultureName)

Parameters

cultureName string

The name of the culture to retrieve.

Returns

CultureInfo

The CultureInfo associated with the specified culture name.

Exceptions

CultureNotFoundException

Thrown if the culture name is invalid or null .

IsValidCultureName(string)

Checks if the given culture name is valid.

public static bool IsValidCultureName(string cultureName)

Parameters

cultureName string

The culture name to validate.

Returns

bool

true if the culture name is valid; otherwise, false .