Method TryGetLocalCurrency
TryGetLocalCurrency(out Currency)
Gets the local currency for the current culture. Culture must be region-specific for this method to succeed.
Declaration
public bool TryGetLocalCurrency(out Currency currency)
Parameters
Type | Name | Description |
---|---|---|
Currency | currency | When the method returns, contains the currency if it was found; otherwise null. |
Returns
Type | Description |
---|---|
bool | true if a local currency for the culture was found; otherwise false. |
TryGetLocalCurrency(CultureInfo, out Currency)
Gets the local currency for the specified culture. Culture must be region-specific for this method to succeed.
Declaration
public bool TryGetLocalCurrency(CultureInfo culture, out Currency currency)
Parameters
Type | Name | Description |
---|---|---|
CultureInfo | culture | The culture to get a local currency for. |
Currency | currency | When the method returns, contains the currency if it was found; otherwise null. |
Returns
Type | Description |
---|---|
bool | true if a local currency for the culture was found; otherwise false. |
TryGetLocalCurrency(RegionInfo, out Currency)
Gets the local currency for the specified region.
Declaration
public bool TryGetLocalCurrency(RegionInfo region, out Currency currency)
Parameters
Type | Name | Description |
---|---|---|
RegionInfo | region | The region to get a local currency for. |
Currency | currency | When the method returns, contains the currency if it was found; otherwise null. |
Returns
Type | Description |
---|---|
bool | true if a local currency for the region was found; otherwise false. |