Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<IncludeBuildOutput>false</IncludeBuildOutput>
<IncludeSymbols>false</IncludeSymbols>
<IsPackable>true</IsPackable>
<Version>8.0.0</Version>
<Version>8.0.2</Version>
<GenerateDataFiles Condition="'$(GenerateDataFiles)' == ''">false</GenerateDataFiles>
<EmitCompilerGeneratedFiles>$(GenerateDataFiles)</EmitCompilerGeneratedFiles>
<LocalCountryCurrencyMapFile>$(MSBuildProjectDirectory)\CountryCurrencyMap.cs</LocalCountryCurrencyMapFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>HawkN.Iso.Countries.Currencies</id>
<title>HawkN.Iso.Countries.Currencies</title>
<version>8.0.1</version>
<version>8.0.2</version>
<authors>Nikolay Selyutin (HawkN113)</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Provides mapping between countries and currencies (primary and secondary). Includes extension methods to query primary, secondary, or all currencies and check usage.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ dotnet add package HawkN.Iso.Countries.Currencies

### Required Namespaces
```csharp
using HawkN.Iso.Countries;
using HawkN.Iso.Currencies;
using HawkN.Iso.Countries;
using HawkN.Iso.Countries.Abstractions;
using HawkN.Iso.Countries.Extensions;
using HawkN.Iso.Currencies.Extensions;
using HawkN.Iso.Countries.Currencies.Extensions;
```
---
Expand All @@ -35,7 +38,7 @@ using HawkN.Iso.Countries.Currencies.Extensions;

#### Get Main Currency
```csharp
CurrencyCode.TwoLetterCode? mainCurrency = CountryCode.TwoLetterCode.US.GetMainCurrency();
var mainCurrency = CountryCode.TwoLetterCode.US.GetPrimaryCurrency();
Console.WriteLine($"Primary currency of US: {mainCurrency}"); // USD
```

Expand All @@ -47,16 +50,16 @@ Console.WriteLine($"Secondary currencies of BO: {string.Join(", ", secondaryCurr

### Get all Currencies for specific country
```csharp
var allCurrencies = CountryCode.BO.GetAllCurrencies();
var allCurrencies = CountryCode.TwoLetterCode.BO.GetAllCurrencies();
Console.WriteLine($"All currencies of BO: {string.Join(", ", allCurrencies)}"); // BOB, BOV
```

#### Validation

Check if Currency is Used by Country
```csharp
bool isUsed = CountryCode.BO.IsCurrencyUsedByCountry(CurrencyCode.BOB); // True
bool isUsdUsed = CountryCode.BO.IsCurrencyUsedByCountry(CurrencyCode.USD); // False
bool isUsed = CountryCode.TwoLetterCode.BO.IsCurrencyUsedByCountry(CurrencyCode.BOB); // True
bool isUsdUsed = CountryCode.TwoLetterCode.BO.IsCurrencyUsedByCountry(CurrencyCode.USD); // False
````

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<IncludeBuildOutput>false</IncludeBuildOutput>
<IncludeSymbols>false</IncludeSymbols>
<IsPackable>true</IsPackable>
<Version>8.0.0</Version>
<Version>8.0.2</Version>
<!-- Use when need to update 'CountryCode','LocalCountryDatabase' -->
<GenerateCountryFiles Condition="'$(GenerateCountryFiles)' == ''">false</GenerateCountryFiles>
<CountryCodeFile>$(MSBuildProjectDirectory)\CountryCode.cs</CountryCodeFile>
Expand Down
4 changes: 2 additions & 2 deletions src/packages/HawkN.Iso.Countries/HawkN.Iso.Countries.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>HawkN.Iso.Countries</id>
<title>HawkN.Iso.Countries</title>
<version>8.0.1</version>
<version>8.0.2</version>
<authors>Nikolay Selyutin (HawkN113)</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Provides strongly typed ISO 3166-1 country and region codes (Alpha-2, Alpha-3) generated at compile time from UN M49 numeric codes. Includes lookup service (ICountryCodeService). Lightweight and optimized for .NET 8 applications.</description>
Expand All @@ -22,7 +22,7 @@
- Includes ICountryCodeService for lookups
- Lightweight &amp; dependency-free
</releaseNotes>
<copyright>Copyright © 2025 Nikolay Selyutin (HawkN113)</copyright>
<copyright>Copyright © 2026 Nikolay Selyutin (HawkN113)</copyright>
<dependencies>
<group targetFramework="net8.0" />
</dependencies>
Expand Down