We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f26b3c commit ec00400Copy full SHA for ec00400
1 file changed
src/IGLib.Core/Console/Validation/Implementations/StringParsing/StringParserProvider.cs
@@ -13,18 +13,18 @@ internal static class StringParserProvider
13
{
14
public static IStringParser<T> GetParser<T>(IFormatProvider? formatProvider = null)
15
16
- Type targetType = typeof(T);
17
- IFormatProvider provider = formatProvider ?? CultureInfo.CurrentCulture;
18
-
+ object parser = GetParser(typeof(T), formatProvider ?? CultureInfo.CurrentCulture);
19
+ return (IStringParser<T>)parser;
+ }
20
21
+ private static object GetParser(Type targetType, IFormatProvider formatProvider)
22
+ {
23
24
+ throw new NotImplementedException();
25
- throw new NotSupportedException(
- $"No built-in string parser is available for target type '{targetType.FullName}'.");
26
}
27
28
29
30
0 commit comments