File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ public static TypeDefinition GetOrCreateOriginalMethodDelegate(MonoModder modder
248248 ctor . Parameters . Add ( new ( "method" , ParameterAttributes . None , delegateType . Module . TypeSystem . IntPtr ) ) ;
249249 delegateType . Methods . Add ( ctor ) ;
250250
251- MethodDefinition invoke = new ( "Invoke" , MethodAttributes . Public | MethodAttributes . HideBySig | MethodAttributes . NewSlot | MethodAttributes . Virtual , delegateType . Module . TypeSystem . Void )
251+ MethodDefinition invoke = new ( "Invoke" , MethodAttributes . Public | MethodAttributes . HideBySig | MethodAttributes . NewSlot | MethodAttributes . Virtual , originalDefinition . ReturnType )
252252 {
253253 IsRuntime = true
254254 } ;
@@ -271,7 +271,7 @@ public static TypeDefinition GetOrCreateOriginalMethodDelegate(MonoModder modder
271271 beginInvoke . Parameters . Add ( new ( "object" , ParameterAttributes . None , delegateType . Module . TypeSystem . Object ) ) ;
272272 delegateType . Methods . Add ( beginInvoke ) ;
273273
274- MethodDefinition endInvoke = new ( "EndInvoke" , MethodAttributes . Public | MethodAttributes . HideBySig | MethodAttributes . NewSlot | MethodAttributes . Virtual , delegateType . Module . TypeSystem . Void )
274+ MethodDefinition endInvoke = new ( "EndInvoke" , MethodAttributes . Public | MethodAttributes . HideBySig | MethodAttributes . NewSlot | MethodAttributes . Virtual , originalDefinition . ReturnType )
275275 {
276276 IsRuntime = true
277277 } ;
You can’t perform that action at this time.
0 commit comments