Пример #1
0
 /// <summary>
 /// <para>
 /// Convert a value on the stack to the given non-character, non-float, non-double primitive type.
 /// If the conversion would overflow at runtime, an OverflowException is thrown.
 /// </para>
 /// <para>Primitives are int8, uint8, int16, uint16, int32, uint32, int64, uint64, float, double, native int (IntPtr), and unsigned native int (UIntPtr). </para>
 /// </summary>
 public Emit ConvertOverflow(Type primitiveType)
 {
     InnerEmit.ConvertOverflow(primitiveType);
     return(this);
 }
Пример #2
0
 /// <summary>
 /// <para>
 /// Convert a value on the stack to the given non-character, non-float, non-double primitive type.
 /// If the conversion would overflow at runtime, an OverflowException is thrown.
 /// </para>
 /// <para>Primitives are int8, uint8, int16, uint16, int32, uint32, int64, uint64, float, double, native int (IntPtr), and unsigned native int (UIntPtr). </para>
 /// </summary>
 public Emit ConvertOverflow <PrimitiveType>()
 {
     InnerEmit.ConvertOverflow <PrimitiveType>();
     return(this);
 }