Sunday, July 21, 2013

Converting between Country Code and Country Name in C#

I have made a simple class for user to convert between country code and country name in C#, which can be downloaded from:

http://www.4shared.com/file/XyWMBYlV/CountryCodeManager.html

This is a singleton class, to get the country code for a country, e.g. Netherlands, use it like this:

string country_code = CountryCodeManager.Instance.GetCountryCode("Netherlands");

No comments:

Post a Comment