CultureInfoProvider Class
Namespace: PTS.Globalization
Assembly: PTS.Globalization.dll
Syntax
[InitializeOnStart]
public class CultureInfoProvider
Inheritance
System.Object
CultureInfoProvider
Constructors
CultureInfoProvider()
Declaration
public CultureInfoProvider()
Fields
Current
Declaration
public static readonly CultureInfoProvider Current
Field Value
Type | Description |
---|---|
CultureInfoProvider |
InvariantLCID
Declaration
public const int InvariantLCID = 127
Field Value
Type | Description |
---|---|
System.Int32 |
MixedCultureLCID
Declaration
public const int MixedCultureLCID = 4096
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
AvailableCultures()
Declaration
public IEnumerable<CultureInfo> AvailableCultures()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Globalization.CultureInfo> |
CultureFromLcid(Int32, Boolean)
Declaration
public CultureInfo CultureFromLcid(int lcid, bool require = true)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | lcid | |
System.Boolean | require |
Returns
Type | Description |
---|---|
System.Globalization.CultureInfo |
NeutralCultures()
Declaration
public IEnumerable<CultureInfo> NeutralCultures()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Globalization.CultureInfo> |
SpecificCultures()
Declaration
public IEnumerable<CultureInfo> SpecificCultures()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Globalization.CultureInfo> |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()