Converts the unsigned value on top of the evaluation stack to signed int64, throwing OverflowException on overflow.
Assembly: mscorlib (in mscorlib.dll)
The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:
Converts an unsigned value to an int64 (on the stack as int64) and throw an exception on overflow.
The stack transitional behavior, in sequential order, is:
value is pushed onto the stack.
value is popped from the stack and the conversion operation is attempted. If overflow occurs, an exception is thrown.
If the conversion is successful, the resulting value is pushed onto the stack.
The conv.ovf.i8.un 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 Emit method overload can use the conv.ovf.i8.un opcode:
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.