Use the Cca2 enumeration to get the country code ISO 3166-1 alpha-2. The name of the country is written in the commentary:
Use the Ccn3 enumeration to get the country code ISO 3166-1 numeric.
Console.WriteLine("Country code " + Ccn3.Bahrain + " is " + (int)Ccn3.Bahrain)
Console.WriteLine("Country code " + Ccn3.Bahrain + " is " + ((int)Ccn3.Bahrain).ToString("000"));
/* Output:
Country code Bahrain is 48
Country code Bahrain is 048
*/
Use the Cca3 enumeration to get the country code ISO 3166-1 alpha-3. The name of the country is written in the commentary:
Use the Cioc enumeration to get the country code International Olympic Committee. The name of the country is written in the commentary:
The logo is provided by the site icons8.com