OpCodes.Jmp 字段

定义

退出当前方法并跳至指定方法。Exits current method and jumps to specified method.

public: static initonly System::Reflection::Emit::OpCode Jmp;
public static readonly System.Reflection.Emit.OpCode Jmp;
 staticval mutable Jmp : System.Reflection.Emit.OpCode
Public Shared ReadOnly Jmp 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
27 < T >27 < T > 跳转 methodjmp method 退出当前方法并跳至指定方法。Exit current method and jump to specified method.

此指令没有堆栈转换行为。There are no stack transition behaviors for this instruction.

@No__t-0 (跳转)指令将控制转移到 @no__t 指定的方法,该方法是方法引用的元数据标记。The jmp (jump) instruction transfers control to the method specified by method, which is a metadata token for a method reference. 当前参数将传输到目标方法。The current arguments are transferred to the destination method.

执行此指令时,计算堆栈必须为空。The evaluation stack must be empty when this instruction is executed. 目标地址的调用约定、数量和参数类型必须与当前方法的参数匹配。The calling convention, number and type of arguments at the destination address must match that of the current method.

@No__t-0 指令不能用于将控制转移出 @no__t,`filter`、`catch` 或 @no__t 块。The jmp instruction cannot be used to transferred control out of a try, filter, catch, or finally block.

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

  • ILGenerator (操作码,MethodInfo)ILGenerator.Emit(OpCode, MethodInfo)

适用于