Check out example codes for "c# get country code". It will help you in understanding the concepts better.

Code Example 1

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;

Learn ReactJs, React Native from akashmittal.com