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.Emit (OpCode, SignatureHelper)

Puts the specified instruction and a signature token onto the stream of instructions.

[Visual Basic]
Overloads Overridable Public Sub Emit( _
   ByVal opcode As OpCode, _
   ByVal signature As SignatureHelper _
)
[C#]
public virtual void Emit(
   OpCode opcode,
   SignatureHelper signature
);
[C++]
public: virtual void Emit(
   OpCode opcode,
   SignatureHelper* signature
);
[JScript]
public function Emit(
   opcode : OpCode,
   signature : SignatureHelper
);

Parameters

opcode
The IL instruction to be emitted onto the stream.
signature
A helper for constructing a signature token.

Exceptions

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

Remarks

The instruction values are defined in the OpCodes enumeration.

See Also

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