OpCodes.Nop 字段


如果修补操作码,则填充空间。Fills space if opcodes are patched. 尽管可能消耗处理周期,但未执行任何有意义的操作。No meaningful operation is performed although a processing cycle can be consumed.

public: static initonly System::Reflection::Emit::OpCode Nop;
public static readonly System.Reflection.Emit.OpCode Nop;
 staticval mutable Nop : System.Reflection.Emit.OpCode
Public Shared ReadOnly Nop As OpCode 



下表列出了指令的十六进制和 Microsoft 中间语言(MSIL)程序集格式以及简短的参考摘要: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
0000 nopnop 执行不具有行为的操作。Performs an operation without behavior.

没有为此指令定义堆栈过渡行为。There is no stack transitional behavior defined for this instruction.

nop 操作不执行任何操作。The nop operation does nothing. 它用于在对操作码进行修补时填充空间。It is intended to fill in space if opcodes are patched.

以下 Emit 方法重载可以使用 nop 操作码:The following Emit method overload can use the nop opcode: