Iso4217Extensions Class

Definition

Namespace: DataStandardizer.Money

Extension methods that read the metadata attached to the ISO 4217 currency code enums.

public static class Iso4217Extensions

Remarks

Each accessor reads the Iso4217CurrencyCodeAttribute applied to the enum member and returns the requested metadata, or null when it is unavailable.

Methods

Extension

Method Extends Returns Notes
GetCurrencyName() Iso4217CurrencyCurrent string? Currency name, or null if unavailable.
GetCurrencyName() Iso4217CurrencyHistoric string? Currency name for a historic code, or null.
GetMinorUnits() Iso4217CurrencyCurrent byte? Number of minor-unit digits, or null.
IsFundCode() Iso4217CurrencyCurrent bool true if the code is a funds code.
IsNationalCurrency() Iso4217CurrencyCurrent bool true for a national currency code.
IsSupranationalCurrency() Iso4217CurrencyCurrent bool true for a supranational currency code.

Applies to

Targets netstandard1.0, netstandard2.0, net8.0, and net10.0.

See also


This site uses Just the Docs, a documentation theme for Jekyll.