Method Load
Load(ICurrencyDataProvider)
Loads currency data from the specified data provider, or returns previously loaded data if the data provider has already been loaded.
Declaration
public static CurrencyData Load(ICurrencyDataProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| ICurrencyDataProvider | provider |
Returns
| Type | Description |
|---|---|
| CurrencyData |
Exceptions
| Type | Condition |
|---|---|
| InvalidDataException | The data provider returned invalid data, i.e. duplicate currency codes, localizations for unknown currencies or invalid rounding information. |