Soenneker.Enums.CurrencyCodes 4.0.118

Prefix Reserved
dotnet add package Soenneker.Enums.CurrencyCodes --version 4.0.118
                    
NuGet\Install-Package Soenneker.Enums.CurrencyCodes -Version 4.0.118
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Enums.CurrencyCodes" Version="4.0.118" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Enums.CurrencyCodes" Version="4.0.118" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Enums.CurrencyCodes" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Enums.CurrencyCodes --version 4.0.118
                    
#r "nuget: Soenneker.Enums.CurrencyCodes, 4.0.118"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Enums.CurrencyCodes@4.0.118
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Enums.CurrencyCodes&version=4.0.118
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.CurrencyCodes&version=4.0.118
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Enums.CurrencyCodes

A string-backed currency-code type for payment and financial API contracts. Values use lowercase, three-letter wire strings such as usd, eur, and gbp.

Install

dotnet add package Soenneker.Enums.CurrencyCodes

Usage

using Soenneker.Enums.CurrencyCodes;

CurrencyCode currency = CurrencyCode.Usd;
string wireValue = currency.Value; // "usd"

if (CurrencyCode.TryFromValue(input, out CurrencyCode? parsed))
{
    // Use parsed in a typed request model
}

System.Text.Json serializes the type as its lowercase string value and restores recognized values to the corresponding static instance. FromValue throws for an unknown value; use TryFromValue at external-input boundaries. FromName and TryFromName are also generated for C# member-name lookup, such as "Usd".

Important boundaries

The constants are a compatibility list for API contracts, not a live currency registry or a guarantee that a payment processor accepts a currency. The set includes legacy identifiers such as mro, std, and sll; verify processor support and settlement rules when accepting a user-selected currency.

The type represents only the currency identifier. It does not provide symbols, localized names, exchange rates, decimal precision, minor-unit conversion, or amount validation. Keep monetary amounts in an appropriate decimal or minor-unit representation and apply the target processor's rules separately.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Soenneker.Enums.CurrencyCodes:

Package Downloads
Soenneker.Stripe.PaymentIntents

Create, retrieve, update, confirm, cancel, capture, and list Stripe payment intents.

Soenneker.Blazor.Stripe.Elements

A modular, strongly-typed Blazor library for Stripe Elements

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.118 313 10/15/2026
4.0.117 81 10/14/2026
4.0.116 120 10/14/2026
4.0.114 74 10/14/2026
4.0.113 37 10/14/2026
4.0.106 167 10/13/2026
4.0.105 123 10/12/2026
4.0.103 156 10/12/2026
4.0.102 341 10/11/2026
4.0.101 105 10/11/2026
4.0.100 150 10/11/2026
4.0.99 879 9/30/2026
4.0.98 654 9/25/2026
4.0.97 97 9/24/2026
4.0.96 118 9/24/2026
4.0.95 833 9/15/2026
4.0.94 133 9/15/2026
4.0.92 740 9/12/2026
4.0.91 114 9/12/2026
4.0.90 112 9/12/2026
Loading failed

Updated Soenneker.Gen.EnumValues to 4.0.64