Puts a call or callvirt instruction onto the IL stream.
[Visual Basic] Public Sub EmitCall( _ ByVal opcode As OpCode, _ ByVal methodInfo As MethodInfo, _ ByVal optionalParameterTypes() As Type _ ) [C#] public void EmitCall( OpCode opcode, MethodInfo methodInfo, Type[] optionalParameterTypes ); [C++] public: void EmitCall( OpCode opcode, MethodInfo* methodInfo, Type* optionalParameterTypes[] ); [JScript] public function EmitCall( opcode : OpCode, methodInfo : MethodInfo, optionalParameterTypes : Type[] );
Exception Type | Condition |
---|---|
ArgumentNullException | if meth is a null reference (in Visual Basic Nothing) |
ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace