File tree Expand file tree Collapse file tree
API/SOFTURE.Common.StronglyTypedIdentifiers/API/Parsers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public static class IdentifierParsers
99 public static ParseResult GuidParser < TIdentifier > ( StringValues input )
1010 where TIdentifier : IIdentifier
1111 {
12- var success = Guid . TryParse ( input ? . ToString ( ) , out var result ) ;
12+ var success = Guid . TryParse ( input , out var result ) ;
1313
1414 var identifier = ( TIdentifier ) Activator . CreateInstance ( typeof ( TIdentifier ) , result ) ! ;
1515
@@ -19,7 +19,7 @@ public static ParseResult GuidParser<TIdentifier>(StringValues input)
1919 public static ParseResult NumberParser < TIdentifier > ( StringValues input )
2020 where TIdentifier : IIdentifier
2121 {
22- var success = int . TryParse ( input ? . ToString ( ) , out var result ) ;
22+ var success = int . TryParse ( input , out var result ) ;
2323
2424 var identifier = ( TIdentifier ) Activator . CreateInstance ( typeof ( TIdentifier ) , result ) ! ;
2525
You can’t perform that action at this time.
0 commit comments