OpCodes.Ldc_R8 字段


将所提供的 float64 类型的值作为 F (float) 类型推送到计算堆栈上。Pushes a supplied value of type float64 onto the evaluation stack as type F (float).

public: static initonly System::Reflection::Emit::OpCode Ldc_R8;
public static readonly System.Reflection.Emit.OpCode Ldc_R8;
 staticval mutable Ldc_R8 : System.Reflection.Emit.OpCode
Public Shared ReadOnly Ldc_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
23 < float64 >23 < float64 > ldc. r8 numldc.r8 num num 推送到堆栈上,@no__t 为-1。Pushes num onto the stack as F.

堆栈转换行为顺序如下:The stack transitional behavior, in sequential order, is:

  1. num 将被推送到堆栈上。The value num is pushed onto the stack.

此编码将 float64 值推送到堆栈上。This encoding pushes a float64 value onto the stack.

以下 @no__t 0 方法重载可以使用 @no__t 操作码:The following Emit method overload can use the ldc.r8 opcode:

  • ILGenerator (操作码,双精度)ILGenerator.Emit(OpCode, double)