Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

OpCodes.Nop Field

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

[Visual Basic]
Public Shared ReadOnly Nop As OpCode
[C#]
public static readonly OpCode Nop;
[C++]
public: static OpCode Nop;
[JScript]
public static var Nop : OpCode;

Remarks

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

Format Assembly Format Description
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 Emit constructor overload can use the nop opcode:

  • ILGenerator.Emit(OpCode)

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

OpCodes Class | OpCodes Members | System.Reflection.Emit Namespace

Show:
© 2014 Microsoft