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)組合格式,並附有簡短參考摘要:
| Format | 組裝格式 | Description |
|---|---|---|
1F <int8> |
LDC.I4.s num |
以簡短形式推 num 入堆疊 int32。 |
堆疊的過渡行為依序為:
- 這個數值
num會被推送到堆疊上。
ldc.i4.s 是將整數從 -128 推入 127 的更有效率編碼方式。
以下 Emit 方法的超載可使用操作 ldc.i4.s 碼: