Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm looking for a library that can ease me to load official countries and sub-division (province, state, region or ... ) to fill checkbox and ensure all my user use same list of countries?

Is there any C# version of Carmen Ruby Gem? Or something else that could help.


GitHub - carmen-ruby/carmen: A repository of geographic regions for Ruby[^]

What I have tried:

At this moment I do this manually

public static IEnumerable<CountryInfo> Countries { get; } = new CountryInfo[]
{
    new CountryInfo { Alpha2Code = "AD", Alpha3Code = "AND", NumericCode = "020", Name = "Andorra", Translations = "{ \"key\": \"21\" }", Category = "Country", DialinCountrygCode="+376" },
    new CountryInfo { Alpha2Code = "AE", Alpha3Code = "ARE", NumericCode = "784", Name = "United Arab Emirates", Translations = "{ \"key\": \"192\" }", Category = "Country", DialinCountrygCode="+971" },
    new CountryInfo { Alpha2Code = "AF", Alpha3Code = "AFG", NumericCode = "004", Name = "Afghanistan", Translations = "{ \"key\": \"17\" }", Category = "Country", DialinCountrygCode="+93" },
    new CountryInfo { Alpha2Code = "AG", Alpha3Code = "ATG", NumericCode = "028", Name = "Antigua and Barbuda", Translations = "{ \"key\": \"203\" }", Category = "Country", DialinCountrygCode="+1 268" },
    new CountryInfo { Alpha2Code = "AI",
Posted
Updated 21-Jan-20 19:22pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900