Stind_I4 Field
Collapse the table of content
Expand the table of content

OpCodes.Stind_I4 Field

Stores a value of type int32 at a supplied address.

[Visual Basic]
Public Shared ReadOnly Stind_I4 As OpCode
public static readonly OpCode Stind_I4;
public: static OpCode Stind_I4;
public static var Stind_I4 : OpCode;


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

Format Assembly Format Description
54 stind.i4 Stores an int32 value at at a given address.

The stack transitional behavior, in sequential order, is:

  1. An address is pushed onto the stack.
  2. A value is pushed onto the stack.
  3. The value and the address are popped from the stack; the value is stored at the address.

The stind.i4 instruction stores an int32 value at the supplied address (type natural 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 Volatile or Unaligned prefix instruction.

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

The following Emit constructor overload can use the stind.i4 opcode:

  • ILGenerator.Emit(OpCode)


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

OpCodes Class | OpCodes Members | System.Reflection.Emit Namespace

© 2016 Microsoft