public static List <string> GetAllCountryNames(CountryNameType type = CountryNameType.Short) { List <string> list = new List <string>(); foreach (Country country in CountryCollection.ListOfCountries) { if (type == CountryNameType.Short) { list.Add(country.ShortName.Trim().ToUpper()); } else if (type == CountryNameType.Long) { list.Add(country.LongName.Trim().ToUpper()); } else if (type == CountryNameType.Capital) { list.Add(country.Capital.Trim().ToUpper()); } } return(list); }
public LocationGeneralType() { this._tPA_Extensions = new TPA_ExtensionsType(); this._countryName = new CountryNameType(); this._stateProv = new StateProvType(); }