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",