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 );
Exception Type | Condition |
---|---|
InvalidOperationException | if instruction is a single-byte instruction and local represents a local with an index of greater than Byte.MaxValue. |
The instruction values are defined in the OpCodes enumeration.
ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace | ILGenerator.Emit Overload List