Emit Method (OpCode, SignatureHelper)

ILGenerator.Emit Method (OpCode, SignatureHelper)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

ExceptionCondition
ArgumentNullException

signature is null.

The instruction values are defined in the OpCodes enumeration.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft