ILGenerator.Emit Method (OpCode, Int32)

Puts the specified instruction and numerical argument onto the Microsoft intermediate language (MSIL) stream of instructions.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)


Public Overridable Sub Emit ( _
    opcode As OpCode, _
    arg As Integer _
public virtual void Emit(
    OpCode opcode,
    int arg


  • arg
    Type: System.Int32
    The numerical argument pushed onto the stream immediately after the instruction.


The instruction values are defined in the OpCodes enumeration.

Version Information


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.