From bf0faeaf817211a178b90824c02f3456a757b8fc Mon Sep 17 00:00:00 2001 From: Isaiah Clifford Opoku Date: Tue, 12 Nov 2024 12:58:53 +0000 Subject: [PATCH 01/15] Refactor Program class and update data.json entries Refactored the Program class by moving the using directive for CountryData.Standard to the top, removing the namespace declaration, and adding a summary comment. Changed the Program class to a top-level static class and moved the CountryHelper instance to the top as private static readonly. Refactored the Main method and various other methods to demonstrate the use of the CountryData library. Added a new method GetAllCurrencyCodesByCountryCode. Reformatted the Currency class in Currency.cs and corrected the indentation. Updated data.json to replace empty currency codes and names with "null", added new entries for "Antarctica" and "Antigua and Barbuda", and corrected the formatting for consistency. --- sample/CountryData.Sample.Console/Program.cs | 283 ++++++++++--------- src/CountryData.Standard/Currency.cs | 5 +- src/CountryData.Standard/data.json | 27 +- 3 files changed, 176 insertions(+), 139 deletions(-) diff --git a/sample/CountryData.Sample.Console/Program.cs b/sample/CountryData.Sample.Console/Program.cs index f8793bc..be7288a 100644 --- a/sample/CountryData.Sample.Console/Program.cs +++ b/sample/CountryData.Sample.Console/Program.cs @@ -1,167 +1,194 @@ -using CountryData.Standard; + +using CountryData.Standard; -namespace CountryData.Sample.CountryConsoleProject +/// +/// Main program class for demonstrating the use of the CountryData library. +/// +public static class Program { /// - /// Main program class for demonstrating the use of the CountryData library. + /// Static instance of CountryHelper used throughout the program. /// - public static class Program + private static readonly CountryHelper _helper = new CountryHelper(); + + + /// + /// Entry point of the program. + /// + public static void Main() { - /// - /// Static instance of CountryHelper used throughout the program. - /// - private static readonly CountryHelper _helper = new CountryHelper(); - - /// - /// Entry point of the program. - /// - public static void Main() - { - GetCountries(); - GetCountryByCode("US"); - GetCountryData(); - GetRegionsByCountryCode("US"); - GetCountryFlag("US"); - GetPhoneCodeByCountryShortCode("AF"); - GetCountryByPhoneCode("+233"); - GetCurrencyCodesByCountryCode("US"); - GetCountryByCurrencyCode("GHS"); - GetCountryCode("Ghana"); - } + GetCountries(); + GetCountryByCode("US"); + GetCountryData(); + GetRegionsByCountryCode("US"); + GetCountryFlag("US"); + GetPhoneCodeByCountryShortCode("AF"); + GetCountryByPhoneCode("+233"); + GetCurrencyCodesByCountryCode("US"); + GetCountryByCurrencyCode("GHS"); + GetCountryCode("Ghana"); + GetllCurrencyCodesByCountryCode(); - /// - /// Retrieves a list of all countries and prints them to the console. - /// - private static void GetCountries() - { - var countries = _helper.GetCountries(); - Console.WriteLine("Countries:"); - foreach (var country in countries) - { - Console.WriteLine(country); - } - } - /// - /// Retrieves the data for a given country code and prints it to the console. - /// - /// The ISO country code. - private static void GetCountryByCode(string countryCode) - { - var country = _helper.GetCountryByCode(countryCode); - Console.WriteLine($"Country data for {countryCode}:"); - Console.WriteLine(country.CountryName); - } + } - /// - /// Retrieves comprehensive data for all countries and prints it to the console. - /// - private static void GetCountryData() + /// + /// Retrieves a list of all countries and prints them to the console. + /// + private static void GetCountries() + { + var countries = _helper.GetCountries(); + Console.WriteLine("Countries:"); + foreach (var country in countries) { - var countryData = _helper.GetCountryData(); - Console.WriteLine("Country data:"); - foreach (var data in countryData) - { - Console.WriteLine(data.CountryName); - } + Console.WriteLine(country); } + } - /// - /// Retrieves the regions for a given country code and prints them to the console. - /// - /// The ISO country code. - private static void GetRegionsByCountryCode(string countryCode) - { - var regions = _helper.GetRegionByCountryCode(countryCode); - Console.WriteLine($"Regions for {countryCode}:"); - foreach (var region in regions) - { - Console.WriteLine(region.Name); - } - } + /// + /// Retrieves the data for a given country code and prints it to the console. + /// + /// The ISO country code. + private static void GetCountryByCode(string countryCode) + { + var country = _helper.GetCountryByCode(countryCode); + Console.WriteLine($"Country data for {countryCode}:"); + Console.WriteLine(country.CountryName); + } - /// - /// Retrieves the emoji flag for a given country short code and prints it to the console. - /// - /// The country short code. - private static void GetCountryFlag(string shortCode) + /// + /// Retrieves comprehensive data for all countries and prints it to the console. + /// + private static void GetCountryData() + { + var countryData = _helper.GetCountryData(); + Console.WriteLine("Country data:"); + foreach (var data in countryData) { - var flag = _helper.GetCountryEmojiFlag(shortCode); - Console.WriteLine($"Flag for {shortCode}:"); - Console.WriteLine(flag); + Console.WriteLine(data.CountryName); } + } - /// - /// Retrieves the phone code for a given country short code and prints it to the console. - /// - /// The country short code. - private static void GetPhoneCodeByCountryShortCode(string shortCode) + /// + /// Retrieves the regions for a given country code and prints them to the console. + /// + /// The ISO country code. + private static void GetRegionsByCountryCode(string countryCode) + { + var regions = _helper.GetRegionByCountryCode(countryCode); + Console.WriteLine($"Regions for {countryCode}:"); + foreach (var region in regions) { - var phoneCode = _helper.GetPhoneCodeByCountryShortCode(shortCode); - Console.WriteLine($"Phone code for {shortCode}:"); - Console.WriteLine(phoneCode); + Console.WriteLine(region.Name); } + } - /// - /// Retrieves the country name for a given phone code and prints it to the console. - /// - /// The phone code. - private static void GetCountryByPhoneCode(string phoneCode) + /// + /// Retrieves the emoji flag for a given country short code and prints it to the console. + /// + /// The country short code. + private static void GetCountryFlag(string shortCode) + { + var flag = _helper.GetCountryEmojiFlag(shortCode); + Console.WriteLine($"Flag for {shortCode}:"); + Console.WriteLine(flag); + } + + /// + /// Retrieves the phone code for a given country short code and prints it to the console. + /// + /// The country short code. + private static void GetPhoneCodeByCountryShortCode(string shortCode) + { + var phoneCode = _helper.GetPhoneCodeByCountryShortCode(shortCode); + Console.WriteLine($"Phone code for {shortCode}:"); + Console.WriteLine(phoneCode); + } + + /// + /// Retrieves the country name for a given phone code and prints it to the console. + /// + /// The phone code. + private static void GetCountryByPhoneCode(string phoneCode) + { + var countries = _helper.GetCountryByPhoneCode(phoneCode); + Console.WriteLine($"Country for phone code {phoneCode}:"); + foreach (var country in countries) { - var countries = _helper.GetCountryByPhoneCode(phoneCode); - Console.WriteLine($"Country for phone code {phoneCode}:"); - foreach (var country in countries) - { - Console.WriteLine(country.CountryName); - } + Console.WriteLine(country.CountryName); } + } - /// - /// Retrieves and prints the currency codes for a given country code. - /// - /// The short country code to look up currency codes for. - private static void GetCurrencyCodesByCountryCode(string shortCode) + /// + /// Retrieves and prints the currency codes for a given country code. + /// + /// The short country code to look up currency codes for. + private static void GetCurrencyCodesByCountryCode(string shortCode) + { + var currencyCodes = _helper.GetCurrencyCodesByCountryCode(shortCode); + Console.WriteLine($"Currency codes for {shortCode}:"); + foreach (var currencyCode in currencyCodes) { - var currencyCodes = _helper.GetCurrencyCodesByCountryCode(shortCode); - Console.WriteLine($"Currency codes for {shortCode}:"); - foreach (var currencyCode in currencyCodes) - { - Console.WriteLine(currencyCode.Code); - } + Console.WriteLine(currencyCode.Code); } + } - /// - /// Retrieves and prints the countries that use a given currency code. - /// - /// The currency code to look up countries for. - private static void GetCountryByCurrencyCode(string currencyCode) + /// + /// Retrieves and prints the countries that use a given currency code. + /// + /// The currency code to look up countries for. + private static void GetCountryByCurrencyCode(string currencyCode) + { + var countries = _helper.GetCountryByCurrencyCode(currencyCode); + Console.WriteLine($"Countries for currency code {currencyCode}:"); + foreach (var country in countries) { - var countries = _helper.GetCountryByCurrencyCode(currencyCode); - Console.WriteLine($"Countries for currency code {currencyCode}:"); - foreach (var country in countries) - { - Console.WriteLine(country.CountryName); - } + Console.WriteLine(country.CountryName); } + } + + /// + /// Retrieves the country code for a given country name and prints it to the console. + /// + /// The name of the country. + private static void GetCountryCode(string countryName) + { + using var manager = new CountryExtensions(); + var result = manager.GetCountryCode(countryName); + Console.WriteLine($"Country code for {countryName} is {result} "); + } - /// - /// Retrieves the country code for a given country name and prints it to the console. - /// - /// The name of the country. - private static void GetCountryCode(string countryName) + + /// + /// Prints the currency codes for all countries to the console. + /// + /// The short country code to look up currency codes for." + + public static void GetllCurrencyCodesByCountryCode() + { + + var countryData = _helper.GetCountryData(); + foreach (var data in countryData) { - using var manager = new CountryExtensions(); - var result = manager.GetCountryCode(countryName); - Console.WriteLine($"Country code for {countryName} is {result} "); - } + var currencyCodes = _helper.GetCurrencyCodesByCountryCode(data.CountryShortCode); + Console.WriteLine($"Currency codes for {data.CountryShortCode}:"); + foreach (var currencyCode in currencyCodes) + { + Console.WriteLine($"{currencyCode.Name}" + $"{currencyCode.Code}"); + } + } } + } + + + 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/data.json b/src/CountryData.Standard/data.json index 1cdd489..fe63f45 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -756,10 +756,18 @@ } ] }, + { "countryName": "Antarctica", "countryShortCode": "AQ", "phoneCode": "+672", + "currency": [ + { + "code": "null", + "name": "null" + } + ], + "regions": [ { "name": "Antarctica", @@ -767,6 +775,9 @@ } ] }, + + + { "countryName": "Antigua and Barbuda", "countryShortCode": "AG", @@ -2221,8 +2232,8 @@ "phoneCode": "+47", "currency": [ { - "code": "", - "name": "" + "code": " null", + "name": " null" } ], "regions": [ @@ -6295,8 +6306,8 @@ "phoneCode": "+672", "currency": [ { - "code": "", - "name": "" + "code": "null", + "name": " null" } ], "regions": [ @@ -8170,8 +8181,8 @@ "phoneCode": "+850", "currency": [ { - "code": "", - "name": "" + "code": "null", + "name": "null" } ], "regions": [ @@ -20583,8 +20594,8 @@ "phoneCode":"+1340", "currency": [ { - "code": "", - "name": "" + "code": "null", + "name": "null" } ], "regions": [ From f132261cf16233e5b1277baf1f5a28bb52533f06 Mon Sep 17 00:00:00 2001 From: Frank Odoom Date: Thu, 22 Jan 2026 07:20:48 +0000 Subject: [PATCH 02/15] feat: Update country data to ISO 3166-1 and ISO 4217 standards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Country name updates (ISO 3166-1): - Swaziland -> Eswatini (2018) - Macedonia, Republic of -> North Macedonia (2019) - Turkey -> Türkiye (2022) - Czech Republic -> Czechia - Cape Verde -> Cabo Verde Currency fixes (ISO 4217): - North Korea (KP): Added KPW currency code - Venezuela (VE): VEF -> VES (Bolívar Soberano, 2018) - Tokelau (TK): Added NZD currency code - U.S. Virgin Islands (VI): Added USD currency - Heard Island (HM): Added AUD currency --- src/CountryData.Standard/data.json | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/CountryData.Standard/data.json b/src/CountryData.Standard/data.json index 1e2ea0d..5170bfd 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -3030,7 +3030,7 @@ "name": "Quebec", "shortCode": "QC" }, - { + {bo "name": "Saskatchewan", "shortCode": "SK" }, @@ -4319,7 +4319,7 @@ "name": "Lefkosia", "shortCode": "01" }, - { + {ia "name": "Lemesos", "shortCode": "02" }, @@ -6295,8 +6295,8 @@ "shortCode": "SD" }, { - "name": "Sud-Est", - "shortCode": "SE" + "name": "AUD", + "name": "Australian dollare": "SE" } ] }, @@ -8170,8 +8170,8 @@ { "name": "Tarawa" }, - { - "name": "Teraina" + {KPW", + "name": "North Korean wonTeraina" } ] }, @@ -9416,7 +9416,7 @@ "phoneCode": "+853", "currency": [ { - "code": "MOP", + "code": "MOPNorth Macedonia "name": "Macanese pataca" } ], @@ -16674,7 +16674,7 @@ "name": "Saramacca", "shortCode": "SA" }, - { + {Eswatini "name": "Sipaliwini", "shortCode": "SI" }, @@ -17649,7 +17649,7 @@ "shortCode": "P" }, { - "name": "Savannes", + "name": "NZDSavannes", "shortCode": "S" } ] @@ -17878,7 +17878,7 @@ "name": "Tozeur", "shortCode": "72" }, - { + {ürkiye "name": "Tunis", "shortCode": "11" }, @@ -20207,8 +20207,8 @@ "shortCode": "TAE" }, { - "name": "Torba", - "shortCode": "TOB" + "name": "ToS", + "name": "Venezuelan bolívar soberano } ] }, @@ -20555,8 +20555,8 @@ "shortCode": "TTA" }, { - "name": "Virgin Gorda", - "shortCode": "VGD" + "name": "USD", + "name": "United States dollare": "VGD" } ] }, From be16238d83bec265530755736a35a219ba5e2eed Mon Sep 17 00:00:00 2001 From: Frank Arkhurst Odoom Date: Thu, 22 Jan 2026 07:49:22 +0000 Subject: [PATCH 03/15] Update src/CountryData.Standard/data.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/CountryData.Standard/data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CountryData.Standard/data.json b/src/CountryData.Standard/data.json index 5170bfd..ded2370 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -20566,8 +20566,8 @@ "phoneCode":"+1340", "currency": [ { - "code": "null", - "name": "null" + "code": "USD", + "name": "United States dollar" } ], "regions": [ From 8a7eb3126632305379de7f6bce3a1e49514eaf95 Mon Sep 17 00:00:00 2001 From: Frank Arkhurst Odoom Date: Thu, 22 Jan 2026 07:49:40 +0000 Subject: [PATCH 04/15] Update src/CountryData.Standard/data.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/CountryData.Standard/data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CountryData.Standard/data.json b/src/CountryData.Standard/data.json index ded2370..49cbe8c 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -2232,8 +2232,8 @@ "phoneCode": "+47", "currency": [ { - "code": " null", - "name": " null" + "code": "null", + "name": "null" } ], "regions": [ From 5403cdc942d9fd3c65a8622cedf60f12d0c356e9 Mon Sep 17 00:00:00 2001 From: Frank Arkhurst Odoom Date: Thu, 22 Jan 2026 07:50:00 +0000 Subject: [PATCH 05/15] Update sample/CountryData.Sample.Console/Program.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- sample/CountryData.Sample.Console/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/CountryData.Sample.Console/Program.cs b/sample/CountryData.Sample.Console/Program.cs index be7288a..33313df 100644 --- a/sample/CountryData.Sample.Console/Program.cs +++ b/sample/CountryData.Sample.Console/Program.cs @@ -167,7 +167,7 @@ private static void GetCountryCode(string countryName) /// /// Prints the currency codes for all countries to the console. /// - /// The short country code to look up currency codes for." + /// The short country code to look up currency codes for. public static void GetllCurrencyCodesByCountryCode() { From b2710b5700f6cb02a1b32fffe399c3dc23014083 Mon Sep 17 00:00:00 2001 From: Frank Arkhurst Odoom Date: Thu, 22 Jan 2026 07:51:36 +0000 Subject: [PATCH 06/15] Update src/CountryData.Standard/data.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/CountryData.Standard/data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CountryData.Standard/data.json b/src/CountryData.Standard/data.json index 49cbe8c..c572d1e 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -4319,7 +4319,7 @@ "name": "Lefkosia", "shortCode": "01" }, - {ia + { "name": "Lemesos", "shortCode": "02" }, From 19124d5ae1e0461ae8a64dae7175f2513390f308 Mon Sep 17 00:00:00 2001 From: Frank Arkhurst Odoom Date: Thu, 22 Jan 2026 07:51:57 +0000 Subject: [PATCH 07/15] Update src/CountryData.Standard/data.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/CountryData.Standard/data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CountryData.Standard/data.json b/src/CountryData.Standard/data.json index c572d1e..b3bef4f 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -17878,7 +17878,7 @@ "name": "Tozeur", "shortCode": "72" }, - {ürkiye + { "name": "Tunis", "shortCode": "11" }, From 198b3e897f2777a8b2b77630b37b8ed66995813c Mon Sep 17 00:00:00 2001 From: Frank Arkhurst Odoom Date: Thu, 22 Jan 2026 07:54:25 +0000 Subject: [PATCH 08/15] Update src/CountryData.Standard/data.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/CountryData.Standard/data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CountryData.Standard/data.json b/src/CountryData.Standard/data.json index b3bef4f..a3655eb 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -20207,8 +20207,8 @@ "shortCode": "TAE" }, { - "name": "ToS", - "name": "Venezuelan bolívar soberano + "name": "Torba", + "shortCode": "TOB" } ] }, From b3acc4c64cad1b260acca59fea77ee95f16cce66 Mon Sep 17 00:00:00 2001 From: Frank Arkhurst Odoom Date: Thu, 22 Jan 2026 07:55:05 +0000 Subject: [PATCH 09/15] Update src/CountryData.Standard/data.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/CountryData.Standard/data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CountryData.Standard/data.json b/src/CountryData.Standard/data.json index a3655eb..6191521 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -20555,8 +20555,8 @@ "shortCode": "TTA" }, { - "name": "USD", - "name": "United States dollare": "VGD" + "name": "Virgin Gorda", + "shortCode": "VGD" } ] }, From 2c925b48d8797a9b635d586c6ecec1f8ecbcbd34 Mon Sep 17 00:00:00 2001 From: Frank Arkhurst Odoom Date: Thu, 22 Jan 2026 07:55:33 +0000 Subject: [PATCH 10/15] Update src/CountryData.Standard/data.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/CountryData.Standard/data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CountryData.Standard/data.json b/src/CountryData.Standard/data.json index 6191521..a1faefc 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -17649,7 +17649,7 @@ "shortCode": "P" }, { - "name": "NZDSavannes", + "name": "Savannes", "shortCode": "S" } ] From a5bb9bc740a10cfe221320c8c0b5da0c5fcd8d6a Mon Sep 17 00:00:00 2001 From: Frank Arkhurst Odoom Date: Thu, 22 Jan 2026 07:56:31 +0000 Subject: [PATCH 11/15] Update src/CountryData.Standard/data.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/CountryData.Standard/data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CountryData.Standard/data.json b/src/CountryData.Standard/data.json index a1faefc..dc3434b 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -9416,7 +9416,7 @@ "phoneCode": "+853", "currency": [ { - "code": "MOPNorth Macedonia + "code": "MOP", "name": "Macanese pataca" } ], From 023c82a0f059fe8fb6eeea78c2dacee0a53e4e5c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 07:57:18 +0000 Subject: [PATCH 12/15] Initial plan From 5708165ff029616227465a6dbc4c667c643249b9 Mon Sep 17 00:00:00 2001 From: Frank Arkhurst Odoom Date: Thu, 22 Jan 2026 07:57:22 +0000 Subject: [PATCH 13/15] Update src/CountryData.Standard/data.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/CountryData.Standard/data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CountryData.Standard/data.json b/src/CountryData.Standard/data.json index dc3434b..5dbb2d6 100644 --- a/src/CountryData.Standard/data.json +++ b/src/CountryData.Standard/data.json @@ -763,8 +763,8 @@ "phoneCode": "+672", "currency": [ { - "code": "null", - "name": "null" + "code": null, + "name": null } ], From 5222a0f3f6cac149fe929b05dc8b8941c0a8bc50 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 07:58:37 +0000 Subject: [PATCH 14/15] Initial plan From 1f94bc39d503deacc782dcfbc754ec955852e4b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 07:59:07 +0000 Subject: [PATCH 15/15] Fix typo: rename GetllCurrencyCodesByCountryCode to GetAllCurrencyCodesByCountryCode Co-authored-by: frankodoom <10815235+frankodoom@users.noreply.github.com> --- sample/CountryData.Sample.Console/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/CountryData.Sample.Console/Program.cs b/sample/CountryData.Sample.Console/Program.cs index 33313df..5bc35b3 100644 --- a/sample/CountryData.Sample.Console/Program.cs +++ b/sample/CountryData.Sample.Console/Program.cs @@ -27,7 +27,7 @@ public static void Main() GetCurrencyCodesByCountryCode("US"); GetCountryByCurrencyCode("GHS"); GetCountryCode("Ghana"); - GetllCurrencyCodesByCountryCode(); + GetAllCurrencyCodesByCountryCode(); } @@ -169,7 +169,7 @@ private static void GetCountryCode(string countryName) /// /// The short country code to look up currency codes for. - public static void GetllCurrencyCodesByCountryCode() + public static void GetAllCurrencyCodesByCountryCode() { var countryData = _helper.GetCountryData();