C# Class BeauData.CultureUtility

Culture utility methods and references.
Mostra file Open project: BeauPrime/BeauData

Public Properties

Property Type Description
InvariantNumberFormat NumberFormatInfo

Public Methods

Method Description
UseCulture ( CultureInfo inInfo ) : CultureSwapScope

Temporary swaps the current thread over to the given CultureInfo. Dispose of the returned object to restore the thread to its previous CultureInfo.

UseInvariantCulture ( ) : CultureSwapScope

Temporary swaps the current thread over to the invariant CultureInfo. Dispose of the returned object to restore the thread to its previous CultureInfo.

Method Details

UseCulture() static public method

Temporary swaps the current thread over to the given CultureInfo. Dispose of the returned object to restore the thread to its previous CultureInfo.
static public UseCulture ( CultureInfo inInfo ) : CultureSwapScope
inInfo CultureInfo
return CultureSwapScope

UseInvariantCulture() static public method

Temporary swaps the current thread over to the invariant CultureInfo. Dispose of the returned object to restore the thread to its previous CultureInfo.
static public UseInvariantCulture ( ) : CultureSwapScope
return CultureSwapScope

Property Details

InvariantNumberFormat static_oe public_oe property

Invariant number format. Use this to ensure consistent number serialization/deserialization across cultures.
static public NumberFormatInfo InvariantNumberFormat
return NumberFormatInfo