Skip to content

Instantly share code, notes, and snippets.

@ugurhasar
Last active September 22, 2017 21:53
Show Gist options
  • Save ugurhasar/cfd92a4bc7bb54a7102a2743f510cace to your computer and use it in GitHub Desktop.
Save ugurhasar/cfd92a4bc7bb54a7102a2743f510cace to your computer and use it in GitHub Desktop.
C# Country info enums
// Return a string of the country name "Turkey"
Country.Info.Turkey.GetCountryName();
// Return a string of the country name "TR"
Country.Info.Turkey.GetCountryCode();
// Return a string of the country name "Lira"
Country.Info.Turkey.GetCurrency();
// Return a string of the country name "TL"
Country.Info.Turkey.GetCurrencyCode();
// Return a string of the country name "+90"
Country.Info.Turkey.GetPhoneCode();
// Returns Info enum.
Country.GetEnum("Turkey").GetCountryName();
// Returns Info enum
Country.GetEnum("TR").GetCountryName();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment