From ce6995aca6e64ec6745b7f7e83d02957c4b494a5 Mon Sep 17 00:00:00 2001 From: CreateAndInject Date: Mon, 4 Mar 2024 02:11:32 +0800 Subject: [PATCH] Sync ReturnParameter --- src/DotNet/MethodDef.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/DotNet/MethodDef.cs b/src/DotNet/MethodDef.cs index 9b58f7b1e..1411eb1ae 100644 --- a/src/DotNet/MethodDef.cs +++ b/src/DotNet/MethodDef.cs @@ -492,11 +492,7 @@ public CallingConvention CallingConvention { /// public TypeSig ReturnType { get => MethodSig?.RetType; - set { - var ms = MethodSig; - if (ms is not null) - ms.RetType = value; - } + set => parameterList.ReturnParameter.Type = value; } ///