Stores a value of type int16 at a supplied address.
Assembly: mscorlib (in mscorlib.dll)
The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:
Stores an int16 value at a given address.
The stack transitional behavior, in sequential order, is:
An address is pushed onto the stack.
A value is pushed onto the stack.
The value and the address are popped from the stack; the value is stored at the address.
The stind.i2 instruction stores an int16 value at the supplied address (type native int, *, or &).
Type safe operation requires that the stind.2i instruction be used in a manner consistent with the type of the pointer. The operation of the stind.i2 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 method overload can use the stind.i2 opcode:
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.