Class Environment.Globalization.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, the sort order of strings, and formatting for dates and numbers.
Inheritance
Inherited Members
Namespace: Experior.Core
Assembly: Experior.Core.dll
Syntax
public class CultureInfo
Properties
CurrentCulture
Gets the System.Globalization.CultureInfo object that represents the culture used by the current thread.
Declaration
public static CultureInfo CurrentCulture { get; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | An object that represents the culture used by the current thread. |
CurrentUICulture
Gets the current culture used by the Resource Manager to look up culture-specific resources at run time.
Declaration
public static CultureInfo CurrentUICulture { get; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | An object that represents the current culture. |
NativeCulture
Gets the application-wide culture.
Declaration
public static CultureInfo NativeCulture { get; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | An object that represents the application-wide culture. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The property is set to null. |
System.InvalidOperationException | .NET Core only: Reading or writing the culture of a thread from another thread is not supported. |
NativeUICulture
Gets the current culture used by the Resource Manager to look up culture-specific resources at run time.
Declaration
public static CultureInfo NativeUICulture { get; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | An object that represents the current culture. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The property is set to null. |
System.ArgumentException | The property is set to a culture name that cannot be used to locate a resource file. Resource filenames must include only letters, numbers, hyphens or underscores. |
System.InvalidOperationException | .NET Core only: Reading or writing the culture of a thread from another thread is not supported. |