diff --git a/src/CountryData.Standard/Country.cs b/src/CountryData.Standard/Country.cs index b35f344..de2c0b0 100644 --- a/src/CountryData.Standard/Country.cs +++ b/src/CountryData.Standard/Country.cs @@ -10,6 +10,5 @@ public class Country public string CountryFlag { get; set; } public List Currency { get; set; } public List Regions { get; set; } - } } diff --git a/src/CountryData.Standard/CountryHelper.cs b/src/CountryData.Standard/CountryHelper.cs index 6dcb817..f3fa43c 100644 --- a/src/CountryData.Standard/CountryHelper.cs +++ b/src/CountryData.Standard/CountryHelper.cs @@ -22,13 +22,11 @@ public CountryHelper() } } - /// /// Read /// /// /// - private string GetJsonData(string path) { string json = ""; @@ -52,7 +50,6 @@ public virtual IEnumerable GetCountryData() return _Countries; } - /// /// Returns a single Country Data by ShortCode /// @@ -73,7 +70,6 @@ public string GetCountryEmojiFlag(string shortCode) return string.Concat(shortCode.ToUpper().Select(x => char.ConvertFromUtf32(x + 0x1F1E6 - 'A'))); } - /// /// Selects Regions in a Particular Country /// @@ -92,9 +88,6 @@ public List GetRegionByCountryCode(string ShortCode) /// IEnumerable countries public IEnumerable GetCountries() => _Countries.Select(c => c.CountryName); - - - /// /// Returns a single Country's Phone Code by ShortCode /// @@ -106,8 +99,6 @@ public string GetPhoneCodeByCountryShortCode(string shortCode) return country?.PhoneCode; } - - /// /// Returns a single Country Data by PhoneCode /// @@ -119,7 +110,6 @@ public IEnumerable GetCountryByPhoneCode(string phoneCode) return Country; } - /// /// Retrieves all currency codes for a given country identified by its short code. /// @@ -132,7 +122,6 @@ public IEnumerable GetCurrencyCodesByCountryCode(string shortCode) .ToList(); } - /// /// Retrieves a list of countries that use a specific currency code. /// @@ -148,7 +137,5 @@ public IEnumerable GetCountryByCurrencyCode(string currencyCode) return _Countries.Where(c => c.Currency != null && c.Currency.Exists(currency => currency.Code == currencyCode)); } - - } } diff --git a/src/CountryData.Standard/Currency.cs b/src/CountryData.Standard/Currency.cs index a4b5137..8ffa3d2 100644 --- a/src/CountryData.Standard/Currency.cs +++ b/src/CountryData.Standard/Currency.cs @@ -1,9 +1,8 @@ namespace CountryData.Standard { - public class Currency + public class Currency { - public string Code { get; set; } + public string Code { get; set; } public string Name { get; set; } - } } diff --git a/src/CountryData.Standard/Regions.cs b/src/CountryData.Standard/Regions.cs index 872c57b..55c8606 100644 --- a/src/CountryData.Standard/Regions.cs +++ b/src/CountryData.Standard/Regions.cs @@ -1,12 +1,8 @@ -using System; - -namespace CountryData.Standard +namespace CountryData.Standard { public class Regions { - public String Name { get; set; } - public String ShortCode { get; set; } - - + public string Name { get; set; } + public string ShortCode { get; set; } } }