Skip to content

Commit bc49695

Browse files
committed
Added IdentityStringParser class (tring to string)
1 parent 3cf6fb8 commit bc49695

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • src/IGLib.Core/Console/Validation/Implementations/StringParsing

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
namespace IGLib
88
{
99

10+
internal sealed class IdentityStringParser : IStringParser<string>
11+
{
12+
public bool TryParse(string text, out string value)
13+
{
14+
value = text;
15+
return true;
16+
}
17+
}
18+
1019
internal sealed class BooleanStringParser : IStringParser<bool>
1120
{
1221
public bool TryParse(string text, out bool value) =>

0 commit comments

Comments
 (0)