Skip to content

Commit b3d52da

Browse files
authored
Merge pull request #42 from nager/fix/null-handling
Fix null handling
2 parents 041bb88 + 3b2e7e3 commit b3d52da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Nager.Country/CountryProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public ICountryInfo GetCountry(string alpha2or3Code)
304304
}
305305

306306
/// <inheritdoc/>
307-
public bool TryGetCountry(string alpha2or3Code, out ICountryInfo countryInfo)
307+
public bool TryGetCountry(string alpha2or3Code, out ICountryInfo? countryInfo)
308308
{
309309
if (Enum.TryParse(alpha2or3Code, true, out Alpha2Code alpha2Code))
310310
{

src/Nager.Country/ICountryProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public interface ICountryProvider
2626
/// <param name="alpha2or3Code"></param>
2727
/// <param name="countryInfo"></param>
2828
/// <returns></returns>
29-
bool TryGetCountry(string alpha2or3Code, out ICountryInfo countryInfo);
29+
bool TryGetCountry(string alpha2or3Code, out ICountryInfo? countryInfo);
3030

3131
/// <summary>
3232
/// Get country by alpha2 code

0 commit comments

Comments
 (0)