Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.CurrencyISO4217.IdToCurrencyAsync Method

Converts an ISO 4217 three character currency ID into a currency name.

Class: YetaWF.Core.Components.CurrencyISO4217
Namespace: YetaWF.Core.Components
Assembly: YetaWF.Core

Syntax

public static Task<string> IdToCurrencyAsync(
    string? id,
    bool AllowMismatch = false );

Parameters

id

The three character currency ID.

AllowMismatch

true to return a default value if the currency doesn't exist, false otherwise (throws an error).

Return Value

Returns the currency name.

See Also YetaWF.Core.Components.CurrencyISO4217 ClassYetaWF.Core Overview