ISOLib 2.1.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ISOLib --version 2.1.1
NuGet\Install-Package ISOLib -Version 2.1.1
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="ISOLib" Version="2.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ISOLib --version 2.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ISOLib, 2.1.1"
#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.
// Install ISOLib as a Cake Addin
#addin nuget:?package=ISOLib&version=2.1.1
// Install ISOLib as a Cake Tool
#tool nuget:?package=ISOLib&version=2.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ISO.csharp
A library that provides access to ISO standards, including ISO 639 (language codes), ISO 3166 (country codes), and ISO 4217 (currency codes).
Usage
Language lang = Languages.Collection["eng"];
if (lang == Languages.ENG || lang == Languages.KIR)
Console.WriteLine(lang);
Country[] countries = Countries.Collection.Where(c => c.Name[0] == 'A').ToArray();
foreach (Country country in countries)
{
Language[] langs = country.GetLanguages();
Currency[] currencies = country.GetCurrencies();
string langsColumn = string.Join(',', langs.Select(l => l.Name));
string currenciesColumn = string.Join(',', currencies.Select(l=>l.Alpha3));
Console.WriteLine($"{country.Alpha2};{country.Name};{currenciesColumn};{langsColumn}");
}
Currency[] supportedCurrencies = Currencies.FilterCurrencies("USD", "KGS", "RUB");
foreach (var currency in supportedCurrencies)
{
Console.WriteLine(currency);
}
Models
Country model
class Country
{
public string Alpha2 { get; }
public string Alpha3 { get; }
public string Name { get; }
public string Name2 { get; }
public string NativeName { get; }
public string Capital { get; }
public string CountryCode { get; }
public string Continent { get; }
public string ContinentAlpha2 { get; }
public string Wiki { get; }
public string Flag { get; }
public int[] Phones { get; }
public string[] Currencies { get; }
public string[] Languages { get; }
}
Language model
class Language
{
public string Alpha2 { get; }
public string Alpha3 { get; }
public string Name { get; }
public string Name2 { get; }
public string NativeName { get; }
public string Family { get; }
}
Currency model
class Currency
{
public string Name { get; }
public string Alpha2 { get; }
public string Alpha3 { get; }
public string Number { get; }
public int MinorUnit { get; }
}
List of Countries
Alpha-2 | Alpha-3 | Name | Capital | Continent | Phone Codes | Currency Codes | Languages | Flag | Wikipedia |
---|---|---|---|---|---|---|---|---|---|
AF | AFG | Afghanistan | Kabul | Asia | +93 | AFN | ps, uz, tk | ๐ฆ๐ซ | Link |
AX | ALA | ร land Islands | Mariehamn | Europe | +358 | EUR | sv | ๐ฆ๐ฝ | Link |
AL | ALB | Albania | Tirana | Europe | +355 | ALL | sq | ๐ฆ๐ฑ | Link |
DZ | DZA | Algeria | Algiers | Africa | +213 | DZD | ar | ๐ฉ๐ฟ | Link |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
List of Languages
Alpha-2 | Alpha-3 | Name | Native Name | Family |
---|---|---|---|---|
aa | aar | Afar | Afar | Afro-Asiatic |
ab | abk | Abkhaz | ะางััะฐ | Northwest Caucasian |
ae | ave | Avestan | avesta | Indo-European |
af | afr | Afrikaans | Afrikaans | Indo-European |
... | ... | ... | ... | ... |
List of Currencies
Alpha-3 | Name | Number | Minor Unit |
---|---|---|---|
AED | United Arab Emirates dirham | 784 | 2 |
AFN | Afghan afghani | 971 | 2 |
ALL | Albanian lek | 8 | 2 |
AMD | Armenian dram | 51 | 2 |
... | ... | ... | ... |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 is compatible. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.0
- No dependencies.
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 4.7.2
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.