public static CountryBindingWraper CreateFromCountryCode(string countryCode) { if (string.IsNullOrWhiteSpace(countryCode)) { throw new ArgumentException("Код страны не может быть пустым!"); } string index = countryCode.ToLower(); if (!CountryBindingWraper._countries.ContainsKey(index)) { index = "none"; } return(CountryBindingWraper.CreaterNewEntry(index, CountryBindingWraper._countries[index])); }
public string GetImagePath() { return(CountryBindingWraper.GetImagePath(this.CountryCode)); }