Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

OpCodes.Ldc_R4 Field

Pushes a supplied value of type float32 onto the evaluation stack as type F (float).

[Visual Basic]
Public Shared ReadOnly Ldc_R4 As OpCode
[C#]
public static readonly OpCode Ldc_R4;
[C++]
public: static OpCode Ldc_R4;
[JScript]
public static var Ldc_R4 : OpCode;

Remarks

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 > ldc.r4 num Pushes num onto the stack as F.

The stack transitional behavior, in sequential order, is:

  1. The value num is pushed onto the stack.

This encoding pushes a float32 value onto the stack.

The following Emit constructor overload can use the ldc.r4 opcode:

  • ILGenerator.Emit(OpCode, single)

Requirements

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

Show:
© 2018 Microsoft