This documentation is archived and is not being maintained.

ILGenerator.Emit Method (OpCode, SByte)

.NET Framework 1.1

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

This method is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
<CLSCompliant(False)>
Overloads Public Sub Emit( _
   ByVal opcode As OpCode, _
   ByVal arg As SByte _
)
[C#]
[CLSCompliant(false)]
public void Emit(
 OpCode opcode,
 sbyte arg
);
[C++]
[CLSCompliant(false)]
public: void Emit(
 OpCode opcode,
 char arg
);
[JScript]
public
   CLSCompliant(false)
function Emit(
 opcode : OpCode,
 arg : SByte
);

Parameters

opcode
The Microsoft intermediate language (MSIL) instruction to be put onto the stream.
arg
The character argument pushed onto the stream immediately after the instruction.

Remarks

The instruction values are defined in the OpCodes enumeration.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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

Show: