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