ILGenerator.Emit Method (OpCode, SignatureHelper)

 

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

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

public virtual void Emit(
	OpCode opcode,
	SignatureHelper signature
)

Parameters

opcode
Type: System.Reflection.Emit.OpCode

The MSIL instruction to be emitted onto the stream.

signature
Type: System.Reflection.Emit.SignatureHelper

A helper for constructing a signature token.

Exception Condition
ArgumentNullException

signature is null.

The instruction values are defined in the OpCodes enumeration.

.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Return to top
Show: