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.EmitCall

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

Parameters

opcode
The IL instruction to be emitted onto the stream.
methodInfo
The method to be called.
optionalParameterTypes
The types of the optional arguments if the method is a varargs method.

Exceptions

Exception Type Condition
ArgumentNullException if meth is a null reference (in Visual Basic Nothing)

See Also

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