DataStandardizer.Money
Strongly-typed support for money-related data standards: ISO 4217 currency codes (current and historic) and a Money value type that pairs an amount with a currency.
dotnet add package DataStandardizer.Money
Standards
| Standard | What it provides |
|---|---|
| ISO 4217 | Codes for the representation of currencies and funds — current currency & funds codes (Tables A.1–A.2) and historic denominations (Table A.3), each carrying the standard’s numeric code and metadata. |
| Money type | A value type combining an amount with an ISO 4217 currency, as described in Patterns of Enterprise Application Architecture by Martin Fowler. |
| Unicode CLDR | Currency symbols, in both the standard and narrow forms. ISO 4217 defines no symbols, so they are sourced from the Common Locale Data Repository. |
Platform support
Targets .NET Standard 1.1 and 2.0 for use in legacy applications, as well as in-support modern .NET runtimes (net10.0).
How-to guides
- Use the Money data type
- Use currency codes
- Access currency metadata
- Format money values
- Parse money values
Concepts
Reference
Table of contents
- Use the Money data type
- Use currency codes
- Access currency metadata
- Format money values
- Parse money values
- The Money type
- API reference
- CurrencyFormatInfo Class
- CurrencySymbolKind Enumeration
- Iso4217CurrencyCodeAttribute Class
- Iso4217CurrencyCurrent Enum
- Iso4217CurrencyHistoric Enum
- Iso4217Extensions Class
- MissingCultureResourceException Class
- Money Struct
- MoneyInfo Class
- MoneyStyles Enumeration