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

Puts the specified instruction onto the IL stream followed by the metadata token for the given type.

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

Parameters

opcode
The IL instruction to be put onto the stream.
cls
A Type.

Remarks

The instruction values are defined in the OpCodes enumeration. The location of cls is recorded so that the token 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