OpCodes.Ldc_I4_S 字段

定义

将提供的 int8 值作为 int32 推送到计算堆栈上(短格式)。Pushes the supplied int8 value onto the evaluation stack as an int32, short form.

public: static initonly System::Reflection::Emit::OpCode Ldc_I4_S;
public static readonly System.Reflection.Emit.OpCode Ldc_I4_S;
 staticval mutable Ldc_I4_S : System.Reflection.Emit.OpCode
Public Shared ReadOnly Ldc_I4_S 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
1F < int8 @ NO__T-11F < int8 > ldc. i4 numldc.i4.s num num 作为 @no__t 的短格式推送到堆栈上。Pushes num onto the stack as int32, short form.

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

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

@no__t 是一种更有效的编码方式,用于将从-128 到127的整数推送到计算堆栈上。ldc.i4.s is a more efficient encoding for pushing the integers from -128 to 127 onto the evaluation stack.

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

适用于