System.Reflection.Emit.OpCodes.Nop Field

Fills space if opcodes are patched. No meaningful operation is performed although a processing cycle can be consumed.

Syntax

public static readonly OpCode Nop

Remarks

The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

00

nop

Performs an operation without behavior.

There is no stack transitional behavior defined for this instruction.

The nop operation does nothing. It is intended to fill in space if opcodes are patched.

The following ILGenerator.Emit(OpCode) method overload can use the nop opcode:

  • ILGenerator.Emit(OpCode)

Requirements

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