OpCodes.Ldc_I4_S 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
推入提供的 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。 |
堆疊轉換行為依循序順序為:
- 值
num會推送至堆疊。
ldc.i4.s 是將整數從 -128 推送至 127 至評估堆疊更有效率的編碼方式。
下列 Emit 方法多載可以使用 ldc.i4.s opcode: