Method TryGetLocalCurrency
TryGetLocalCurrency(out Currency)
Gets the local currency for the current culture using the Default currency registry. Culture must be region-specific for this method to succeed.
Declaration
public static 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 using the Default currency registry. Culture must be region-specific for this method to succeed.
Declaration
public static 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 using the Default currency registry.
Declaration
public static 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. |