Share via


OpCodes.Stind_I4 欄位

定義

於所提供的位址儲存 int32 型別的值。

public: static initonly System::Reflection::Emit::OpCode Stind_I4;
public static readonly System.Reflection.Emit.OpCode Stind_I4;
 staticval mutable Stind_I4 : System.Reflection.Emit.OpCode
Public Shared ReadOnly Stind_I4 As OpCode 

欄位值

備註

下表列出指令的十六進位和 Microsoft 中繼語言 (MSIL) 元件格式,以及簡短的參考摘要:

格式 元件格式 描述
54 stind.i4 int32 值儲存在指定的位址。

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

  1. 位址會推送至堆疊。

  2. 值會推送至堆疊。

  3. 值和位址會從堆疊中擷取;值會儲存在位址。

指令 stind.i4 會將 int32 值儲存在提供的位址 (類型 native int*&) 。

類型安全作業需要 stind.i4 以與指標類型一致的方式使用指令。 指令的 stind.i4 作業可以由緊接在 Volatile 前面或 Unaligned 前置詞指令來改變。

NullReferenceException 如果未 addr 自然對齊指令後綴所隱含的自變數類型,則會擲回 。

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

適用於