Puts a calli instruction onto the IL stream.
[Visual Basic] Public Sub EmitCalli( _ ByVal opcode As OpCode, _ ByVal callingConvention As CallingConventions, _ ByVal returnType As Type, _ ByVal parameterTypes() As Type, _ ByVal optionalParameterTypes() As Type _ ) [C#] public void EmitCalli( OpCode opcode, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Type[] optionalParameterTypes ); [C++] public: void EmitCalli( OpCode opcode, CallingConventions callingConvention, Type* returnType, Type* parameterTypes[], Type* optionalParameterTypes[] ); [JScript] public function EmitCalli( opcode : OpCode, callingConvention : CallingConventions, returnType : Type, parameterTypes : Type[], optionalParameterTypes : Type[] );
Exception Type | Condition |
---|---|
InvalidOperationException | if optionalParameterTypes is not a null reference (in Visual Basic Nothing) and callingConvention is VarArgs. |
ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace