Skip to content

Commit cd2a900

Browse files
committed
Corrected warnings
1 parent 32da49a commit cd2a900

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.ComponentModel.DataAnnotations;
42
using System.Globalization;
5-
using System.Linq;
6-
using System.Text;
7-
83
namespace IGLib;
94

5+
106
public class ParsableStringValidator<TTarget> : IValidator<string>
117
{
128
private readonly IStringParser<TTarget> _parser;
139

1410
public ParsableStringValidator(
15-
IFormatProvider formatProvider = null,
16-
string errorMessage = null)
11+
IFormatProvider? formatProvider = null,
12+
string? errorMessage = null)
1713
{
1814
_parser = StringParserProvider.GetParser<TTarget>(formatProvider ?? CultureInfo.CurrentCulture);
1915
ErrorMessage = errorMessage ?? $"Value is not a valid {typeof(TTarget).Name}.";

0 commit comments

Comments
 (0)