OpCodes.Ldc_I4_5 字段

定义

将整数值 5 作为 int32 推送到计算堆栈上。Pushes the integer value of 5 onto the evaluation stack as an int32.

public: static initonly System::Reflection::Emit::OpCode Ldc_I4_5;
public static readonly System.Reflection.Emit.OpCode Ldc_I4_5;
 staticval mutable Ldc_I4_5 : System.Reflection.Emit.OpCode
Public Shared ReadOnly Ldc_I4_5 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
1B1B ldc.i4.5ldc.i4.5 将5推送到堆栈上。Pushes 5 onto the stack.

堆栈转换行为顺序如下:The stack transitional behavior, in sequential order, is:

  1. 值5被推送到堆栈上。The value 5 is pushed onto the stack.

这是一个用于推送整数值5的特殊短编码。This is a special short encoding for the push of the integer value 5. 所有特殊的短编码将4字节整数推送到堆栈上。All special short encodings push 4 byte integers on the stack.

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

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

适用于