Skip to content

Commit

Permalink
chore: Update GetCountryByPhoneCode method name and example
Browse files Browse the repository at this point in the history
  • Loading branch information
Clifftech123 committed Jun 11, 2024
1 parent aceae33 commit 23b7fa6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,11 @@ For more detailed instructions and comprehensive information about the library,
```


This example demonstrates how to retrieve countries with a specific phone code using the `GetCountriesByPhoneCode` method. In this case, we're fetching all countries with the phone code "+1".
This example demonstrates how to retrieve a country with a specific phone code using the `GetCountryByPhoneCode` method. In this case, we're fetching the country with the phone code "+233".

```csharp
var countriesWithPhoneCode = helper.GetCountriesByPhoneCode("+233");
foreach (var country in countriesWithPhoneCode)
{
Console.WriteLine(country.NameCountryName);
}

var CountryName = helper.GetCountryByPhoneCode("+233");
Console.WriteLine(CountryName);
```


Expand Down

0 comments on commit 23b7fa6

Please sign in to comment.