diff --git a/src/PhoneNumbers/Parsers/GBPhoneNumberParser.cs b/src/PhoneNumbers/Parsers/GBPhoneNumberParser.cs index 456ad07f..ebcd3876 100644 --- a/src/PhoneNumbers/Parsers/GBPhoneNumberParser.cs +++ b/src/PhoneNumbers/Parsers/GBPhoneNumberParser.cs @@ -24,7 +24,7 @@ private GBPhoneNumberParser(IReadOnlyList countryNumbers) /// Creates an instance of the class. /// /// The created . - internal static PhoneNumberParser Create() + public static PhoneNumberParser Create() { var countryNumbers = ResourceUtility .ReadCountryNumbers("GB.txt") diff --git a/src/PhoneNumbers/Parsers/PhoneNumberParserFactory.cs b/src/PhoneNumbers/Parsers/PhoneNumberParserFactory.cs index 142859b6..4ff66ddd 100644 --- a/src/PhoneNumbers/Parsers/PhoneNumberParserFactory.cs +++ b/src/PhoneNumbers/Parsers/PhoneNumberParserFactory.cs @@ -14,8 +14,8 @@ internal PhoneNumberParser GetParser(CountryInfo countryInfo) => { var createMethod = typeof(PhoneNumberParser) .Assembly - .GetType($"PhoneNumbers.Parsers.{x.Iso3166Code}PhoneNumberParser")? - .GetMethod("Create", BindingFlags.NonPublic | BindingFlags.Static); + .GetType($"PhoneNumbers.Parsers.{x.Iso3166Code}PhoneNumberParser") + ?.GetMethod("Create", BindingFlags.Public | BindingFlags.Static); if (createMethod?.Invoke(null, null) is PhoneNumberParser parser) {