Skip to content

Commit bcefe8a

Browse files
Update ReturningMethod.cs
1 parent 7c1b8f1 commit bcefe8a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

MethodSystem/BaseMethods/ReturningMethod.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ public abstract class ReturningMethod<T> : ReturningMethod
1313
{
1414
public override Type[] ReturnTypes => [typeof(T)];
1515

16-
public new T? ReturnValue
16+
protected new T? ReturnValue
1717
{
18-
get => base.ReturnValue as T;
19-
protected set => base.ReturnValue = value;
18+
set => base.ReturnValue = value;
2019
}
2120
}

0 commit comments

Comments
 (0)