Skip to content

Commit fd15b9d

Browse files
committed
Refactored StringParserProvider
1 parent 4d9781d commit fd15b9d

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/IGLib.Core/Console/Validation/Implementations/StringParsing/StringParserProvider.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
using System;
22
using System.Collections.Generic;
33
using System.ComponentModel.DataAnnotations;
4+
using System.Globalization;
45
using System.Linq;
56
using System.Text;
67

78
namespace IGLib
89
{
910

1011

11-
public static class StringParserProvider
12+
internal static class StringParserProvider
1213
{
13-
1414
public static IStringParser<T> GetParser<T>(IFormatProvider? formatProvider = null)
1515
{
16-
Type type = typeof(T);
17-
16+
Type targetType = typeof(T);
17+
IFormatProvider provider = formatProvider ?? CultureInfo.CurrentCulture;
1818

1919

20-
throw new NotSupportedException($"Type {type.FullName} is not supported.");
20+
throw new NotImplementedException();
21+
// throw new NotSupportedException($"Type {type.FullName} is not supported.");
2122
}
2223

2324

0 commit comments

Comments
 (0)