Browse Source

Don't use ".Invoke" for delegate invocations.

pull/100/head
Daniel Grunwald 15 years ago
parent
commit
49a702f0cf
  1. 3
      ICSharpCode.Decompiler/Ast/AstMethodBodyBuilder.cs

3
ICSharpCode.Decompiler/Ast/AstMethodBodyBuilder.cs

@ -595,6 +595,9 @@ namespace ICSharpCode.Decompiler.Ast
}; };
} }
} }
} else if (cecilMethodDef.Name == "Invoke" && cecilMethodDef.DeclaringType.BaseType.FullName == "System.MulticastDelegate") {
AdjustArgumentsForMethodCall(cecilMethod, methodArgs);
return target.Invoke(methodArgs);
} }
} }
// Default invocation // Default invocation

Loading…
Cancel
Save