Пример #1
0
        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);
        }
Пример #2
0
 public LocationGeneralType()
 {
     this._tPA_Extensions = new TPA_ExtensionsType();
     this._countryName    = new CountryNameType();
     this._stateProv      = new StateProvType();
 }