OpCodes.Ldc_R4 字段


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

public: static initonly System::Reflection::Emit::OpCode Ldc_R4;
public static readonly System.Reflection.Emit.OpCode Ldc_R4;
 staticval mutable Ldc_R4 : System.Reflection.Emit.OpCode
Public Shared ReadOnly Ldc_R4 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
22 < float32 >22 < float32 > ldc. r4 numldc.r4 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.

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

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

  • ILGenerator (操作码,single)ILGenerator.Emit(OpCode, single)