Skip to content

Commit 5f8b478

Browse files
Fixed OpResult mapping
1 parent 337e405 commit 5f8b478

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
<IsPackable>true</IsPackable>
7-
<Version>2.1.24</Version>
7+
<Version>2.1.25</Version>
88
<Authors>Andrey Serdyuk</Authors>
99
<Company>TaskHub</Company>
1010
<PackageTags>#TaskHub</PackageTags>

TaskHub.Shared.Response/OpResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ public class OpResult(int code, string message)
66
public int ResultCode { get; init; } = code;
77
public string Message { get; init; } = message;
88

9-
public TResult As<TResult>() where TResult : Result => (TResult)(object)this;
9+
public TResult As<TResult>() where TResult : Result => (TResult)(Result)this;
1010
}

0 commit comments

Comments
 (0)