OpCodes.Ldc_I4_S 欄位

定義

推入提供的 int8 值至評估堆疊做為 int32 (簡短形式)。

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) 元件格式,以及簡短的參考摘要:

格式 元件格式 Description
1F <int8> ldc.i4.s num num 、簡短形式推送至堆疊 int32

堆疊轉換行為依循序順序為:

  1. num 會推送至堆疊。

ldc.i4.s 是將整數從 -128 推送至 127 至評估堆疊更有效率的編碼方式。

下列 Emit 方法多載可以使用 ldc.i4.s opcode:

適用於