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.

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

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

  • ILGenerator.Emit(OpCode)ILGenerator.Emit(OpCode)

适用于