OpCodes.Stelem_R8 字段
定义
用计算堆栈上的 float64 值替换给定索引处的数组元素。Replaces the array element at a given index with the float64 value on the evaluation stack.
public: static initonly System::Reflection::Emit::OpCode Stelem_R8;
public static readonly System.Reflection.Emit.OpCode Stelem_R8;
staticval mutable Stelem_R8 : System.Reflection.Emit.OpCode
Public Shared ReadOnly Stelem_R8 As OpCode
字段值
注解
下表列出了指令的十六进制和 Microsoft 中间语言 (MSIL) 程序集格式,以及简短的参考摘要: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 |
|---|---|---|
| A1A1 | stelem. r8stelem.r8 | 将所提供的索引处的数组元素替换为 float64 堆栈上的值。Replaces an array element at the supplied index with the float64 value on the stack. |
堆栈转换行为顺序如下:The stack transitional behavior, in sequential order, is:
对数组的对象引用
array被推送到堆栈上。An object reference to an array,array, is pushed onto the stack.将中元素的有效索引
array推送到堆栈上。A valid index to an element inarrayis pushed onto the stack.将值推送到堆栈上。A value is pushed onto the stack.
从堆栈中弹出值、索引和数组引用;将值放入给定索引处的数组元素。The value, the index, and the array reference are popped from the stack; the value is put into the array element at the given index.
stelem.r8指令 index array 用 float64 推送到堆栈上的值替换一维数组中的元素的值。The stelem.r8 instruction replaces the value of the element index in the one-dimensional array array with the float64 value pushed onto the stack.
数组是对象,因此表示为类型的值 O 。Arrays are objects and hence represented by a value of type O. 索引的类型为 native int 。The index is type native int.
NullReferenceException 如果 array 为 null 引用,则引发。NullReferenceException is thrown if array is a null reference.
IndexOutOfRangeException 如果 index 为负或大于的界限,则引发 array 。IndexOutOfRangeException is thrown if index is negative, or larger than the bound of array.
ArrayTypeMismatchException 如果不 array 包含所需类型的元素,则引发。ArrayTypeMismatchException is thrown if array does not hold elements of the required type.
以下 Emit 方法重载可以使用 stelem.r8 操作码:The following Emit method overload can use the stelem.r8 opcode: