NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ILGenerator.EmitCalli

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[]
);

Parameters

opcode
The IL instruction to be emitted onto the stream.
callingConvention
The calling convention to be used.
returnType
The Type of the result.
parameterTypes
The types of the required arguments to the instruction.
optionalParameterTypes
The types of the optional arguments for vararg calls.

Exceptions

Exception Type Condition
InvalidOperationException if optionalParameterTypes is not a null reference (in Visual Basic Nothing) and callingConvention is VarArgs.

See Also

ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace