Method TryGetCurrenciesBySymbol
TryGetCurrenciesBySymbol(string, out IReadOnlyList<Currency>)
Gets the currencies in this registry that use the specified currency symbol, ordered by currency code.
Declaration
public bool TryGetCurrenciesBySymbol(string currencySymbol, out IReadOnlyList<Currency> currencies)
Parameters
Type | Name | Description |
---|---|---|
string | currencySymbol | The symbol of the currency to find. |
IReadOnlyList<Currency> | currencies | When the method returns, contains the currencies if any were found; otherwise an empty collection. |
Returns
Type | Description |
---|---|
bool |
TryGetCurrenciesBySymbol(string, CultureInfo?, out IReadOnlyList<Currency>)
Gets the currencies in this registry that use the specified currency symbol, ordered by currency code.
Declaration
public bool TryGetCurrenciesBySymbol(string currencySymbol, CultureInfo? culture, out IReadOnlyList<Currency> currencies)
Parameters
Type | Name | Description |
---|---|---|
string | currencySymbol | The symbol of the currency to find. |
CultureInfo | culture | The culture to use for the localized symbols. |
IReadOnlyList<Currency> | currencies | When the method returns, contains the currencies if any were found; otherwise an empty collection. |
Returns
Type | Description |
---|---|
bool |