Answers for "c# get country code"

C#
0

c# get country code

var regions = CultureInfo.GetCultures(CultureTypes.SpecificCultures).Select(x => new RegionInfo(x.LCID));
var englishRegion = regions.FirstOrDefault(region => region.EnglishName.Contains("United Kingdom"));
var countryAbbrev = englishRegion.TwoLetterISORegionName;
Posted by: Guest on February-12-2020

Code answers related to "c# get country code"

C# Answers by Framework

Browse Popular Code Answers by Language