title: Get ISO country code from country name
body: <p>Is there a way to get the ISO ALPHA-2 code (country code) from a <strong>country name</strong> such as United Kingdom = GB?</p>
  
  <p>I'm trying to achieve the nearly the opposite of the code below</p>
  
  <pre><code>//To get the Country Names from the CultureInfo
  
   foreach (CultureInfo cul in CultureInfo.GetCultures(CultureTypes.SpecificCultures))
  
   {    
         country = new RegionInfo(new CultureInfo(cul.Name, false).LCID);    
         countryNames.Add(country.DisplayName.ToString());    
   }
  </code></pre>