System.Reflection.Emit.OpCodes.Conv_Ovf_U8 Field

Converts the signed value on top of the evaluation stack to unsigned int64, throwing OverflowException on overflow.

Syntax

public static readonly OpCode Conv_Ovf_U8

Remarks

The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

BA

conv.ovf.u8

Convert to an unsigned int64 (on the stack as int64) and throw an exception on overflow.

The stack transitional behavior, in sequential order, is:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]

The conv.ovf.u8 opcode converts the value on top of the stack to the type specified in the opcode, and places that converted value on the top of the stack. If the value is too large or too small to be represented by the target type, an exception is thrown.

Conversions from floating-point numbers to integer values truncate the number toward zero. Note that integer values of less than 4 bytes are extended to int32 when they are loaded onto the evaluation stack (unless conv.ovf.i or conv.ovf.u are used, in which case the result is also native int).

OverflowException is thrown if the result can not be represented in the result type.

The following ILGenerator.Emit(OpCode) method overload can use the conv.ovf.u8 opcode:

  • ILGenerator.Emit(OpCode)

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0