Skip to content

Commit 3cf6fb8

Browse files
committed
Added file for IParsers implementations + IStringParser<bool>
1 parent ff94dbd commit 3cf6fb8

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

  • src/IGLib.Core/Console/Validation/Implementations/StringParsing
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel.DataAnnotations;
4+
using System.Linq;
5+
using System.Text;
6+
7+
namespace IGLib
8+
{
9+
10+
internal sealed class BooleanStringParser : IStringParser<bool>
11+
{
12+
public bool TryParse(string text, out bool value) =>
13+
bool.TryParse(text, out value);
14+
}
15+
16+
}

0 commit comments

Comments
 (0)