Hello, So I have a problem which is kinda difficult to explain. I created a MethoDefinition with some returntype and some parameters and inside I call the actual method of an Reference. Like I replace MessageBox.Show() calls in the assembly with my method which performs the Messagebox.show() action and returns a DialogResult and has as Parameter a String. So far, no problem. But if the method has more then one parameter I loop through the ParameterDefinitionArray I am parsing and for each parameter I insert a ldarg. I get an error "opcode". If I statically parse a ldarg.0 when the method has only one parameter its working fine, but since I don't know how many parameters there are I need to parse the correct Parameters before the call somehow. Any idea how I can do that. The things I parse to the method which will create the new method are:
ParameterDefinition[] MethodRefernce MethodReturnType TypeDefinition (to use Module.Import()) I am clueless and need your guys help :/ -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
