System.Reflection.Emit.ILGenerator.Emit Method

Puts the specified instruction and a signature token onto the Microsoft intermediate language (MSIL) stream of instructions.

Syntax

public virtual void Emit (OpCode opcode, SignatureHelper signature)

Parameters

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

Remarks

The instruction values are defined in the OpCodes enumeration.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0