System.Reflection.Emit.OpCodes.Stind_I4 Field

Stores a value of type int32 at a supplied address.

Syntax

public static readonly OpCode Stind_I4

Remarks

The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

54

stind.i4

Stores an int32 value at a given address.

The stack transitional behavior, in sequential order, is:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]

The stind.i4 instruction stores an int32 value at the supplied address (type native int, *, or &).

Type safe operation requires that the stind.i4 instruction be used in a manner consistent with the type of the pointer. The operation of the stind.i4 instruction can be altered by an immediately preceding OpCodes.Volatile or OpCodes.Unaligned prefix instruction.

NullReferenceException is thrown if addr is not naturally aligned for the argument type implied by the instruction suffix.

The following ILGenerator.Emit(OpCode) method overload can use the stind.i4 opcode:

  • ILGenerator.Emit(OpCode)

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0