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

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

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

Parameters

opcode
The IL instruction to be emitted onto the stream.
local
A local variable.

Exceptions

Exception Type Condition
InvalidOperationException if instruction is a single-byte instruction and local represents a local with an index of greater than Byte.MaxValue.

Remarks

The instruction values are defined in the OpCodes enumeration.

See Also

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