C# Class WebApplications.Utilities.Globalization.CurrencyInfoProvider

Inheritance: ICurrencyInfoProvider
Exibir arquivo Open project: webappsuk/CoreLibraries

Private Properties

Property Type Description
CurrencyInfoProvider System
Load CurrencyInfoProvider
LoadCurrencies ICurrencyInfoProvider
LoadFromBinary CurrencyInfoProvider
LoadFromFile CurrencyInfoProvider
LoadFromXml CurrencyInfoProvider
OnActiveUtilityConfigurationChanged void

Public Methods

Method Description
CurrencyInfoProvider ( System.DateTime published, [ currencies ) : System

Initializes a new instance of the CurrencyInfoProvider class.

Get ( CultureInfo cultureInfo ) : CurrencyInfo

Gets the CurrencyInfo from the specified culture information.

Get ( ExtendedCultureInfo cultureInfo ) : CurrencyInfo

Gets the specified culture information.

Get ( RegionInfo regionInfo ) : CurrencyInfo

Gets the CurrencyInfo from the specified region information.

Get ( string currencyCode ) : CurrencyInfo

Retrieves a CurrencyInfo with the ISO Code specified.

SetCurrentProvider ( string path = null ) : void

Sets the current provider.

Private Methods

Method Description
CurrencyInfoProvider ( ) : System

Initializes the CurrencyInfoProvider class.

Load ( [ stream, bool leaveOpen = false ) : CurrencyInfoProvider
LoadCurrencies ( string path = null ) : ICurrencyInfoProvider
LoadFromBinary ( [ stream, bool leaveOpen = false ) : CurrencyInfoProvider
LoadFromFile ( [ path ) : CurrencyInfoProvider
LoadFromXml ( [ xml ) : CurrencyInfoProvider
OnActiveUtilityConfigurationChanged ( [ sender, [ e ) : void

Called when the utility configuration changes. If the Configuration.UtilityConfiguration.ISO4217 property changes, the data_stream will be reloaded.

Method Details

CurrencyInfoProvider() public method

Initializes a new instance of the CurrencyInfoProvider class.
public CurrencyInfoProvider ( System.DateTime published, [ currencies ) : System
published System.DateTime The date this file was published.
currencies [ The currencies in the file.
return System

Get() public method

Gets the CurrencyInfo from the specified culture information.
public Get ( CultureInfo cultureInfo ) : CurrencyInfo
cultureInfo System.Globalization.CultureInfo The culture information.
return CurrencyInfo

Get() public method

Gets the specified culture information.
public Get ( ExtendedCultureInfo cultureInfo ) : CurrencyInfo
cultureInfo ExtendedCultureInfo The culture information.
return CurrencyInfo

Get() public method

Gets the CurrencyInfo from the specified region information.
/// is . ///
public Get ( RegionInfo regionInfo ) : CurrencyInfo
regionInfo System.Globalization.RegionInfo The region information.
return CurrencyInfo

Get() public method

Retrieves a CurrencyInfo with the ISO Code specified.
/// is . ///
public Get ( string currencyCode ) : CurrencyInfo
currencyCode string The ISO Code.
return CurrencyInfo

SetCurrentProvider() public static method

Sets the current provider.
public static SetCurrentProvider ( string path = null ) : void
path string The path.
return void