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, ConstructorInfo)

Puts the specified instruction and metadata token for the specified constructor onto the stream of instructions.

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

Parameters

opcode
The IL instruction to be emitted onto the stream.
con
A ConstructorInfo representing a constructor.

Remarks

The instruction values are defined in the OpCodes enumeration.

The location of con is recorded so that the instruction stream can be patched if necessary when persisting the module to a PE.

See Also

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