Skip to content

Commit 05f1ed7

Browse files
authored
Fixed type of Guid_Parsable.cs (#14)
The variable res (used as resulto of TryParse) was of type long instead of type Guid
1 parent 0a25da4 commit 05f1ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StronglyTypedIds/Templates/Guid/Guid_Parsable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public static TESTID Parse(string s, System.IFormatProvider? provider)
77

88
public static bool TryParse(string? s, System.IFormatProvider? provider, out TESTID result)
99
{
10-
long res = 0;
10+
Guid res = Guid.Empty;
1111
var ok = Guid.TryParse(s, provider, out res);
1212
result = new TESTID(res);
1313
return ok;

0 commit comments

Comments
 (0)