Operator explicit operator checked
- Namespace
- Zyl.VectorTraits.ExTypes
- Assembly
- VectorTraits.dll
explicit operator checked byte(ExInt128)
Explicitly converts a 128-bit signed integer to a byte value, throwing an overflow exception for any values that fall outside the representable range.
public static explicit operator checked byte(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked char(ExInt128)
Explicitly converts a 128-bit signed integer to a char value, throwing an overflow exception for any values that fall outside the representable range.
public static explicit operator checked char(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked short(ExInt128)
Explicitly converts a 128-bit signed integer to a short value, throwing an overflow exception for any values that fall outside the representable range.
public static explicit operator checked short(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked int(ExInt128)
Explicitly converts a 128-bit signed integer to a int value, throwing an overflow exception for any values that fall outside the representable range.
public static explicit operator checked int(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked long(ExInt128)
Explicitly converts a 128-bit signed integer to a long value, throwing an overflow exception for any values that fall outside the representable range.
public static explicit operator checked long(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked nint(ExInt128)
Explicitly converts a 128-bit signed integer to a nint value, throwing an overflow exception for any values that fall outside the representable range.
public static explicit operator checked nint(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked sbyte(ExInt128)
Explicitly converts a 128-bit signed integer to a sbyte value, throwing an overflow exception for any values that fall outside the representable range.
[CLSCompliant(false)]
public static explicit operator checked sbyte(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked ushort(ExInt128)
Explicitly converts a 128-bit signed integer to a ushort value, throwing an overflow exception for any values that fall outside the representable range.
[CLSCompliant(false)]
public static explicit operator checked ushort(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked uint(ExInt128)
Explicitly converts a 128-bit signed integer to a uint value, throwing an overflow exception for any values that fall outside the representable range.
[CLSCompliant(false)]
public static explicit operator checked uint(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked ulong(ExInt128)
Explicitly converts a 128-bit signed integer to a ulong value, throwing an overflow exception for any values that fall outside the representable range.
[CLSCompliant(false)]
public static explicit operator checked ulong(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked ExUInt128(ExInt128)
Explicitly converts a 128-bit signed integer to a ExUInt128 value, throwing an overflow exception for any values that fall outside the representable range.
[CLSCompliant(false)]
public static explicit operator checked ExUInt128(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked nuint(ExInt128)
Explicitly converts a 128-bit signed integer to a nuint value, throwing an overflow exception for any values that fall outside the representable range.
[CLSCompliant(false)]
public static explicit operator checked nuint(ExInt128 value)
Parameters
value
ExInt128The value to convert.
Returns
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked ExInt128(double)
Explicitly converts a double value to a 128-bit signed integer, throwing an overflow exception for any values that fall outside the representable range.
public static explicit operator checked ExInt128(double value)
Parameters
value
doubleThe value to convert.
Returns
- ExInt128
value
converted to a 128-bit signed integer.
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked ExInt128(float)
Explicitly converts a float value to a 128-bit signed integer, throwing an overflow exception for any values that fall outside the representable range.
public static explicit operator checked ExInt128(float value)
Parameters
value
floatThe value to convert.
Returns
- ExInt128
value
converted to a 128-bit signed integer.
Exceptions
- OverflowException
value
is not representable by ExInt128.
explicit operator checked ExInt128(Half)
Explicitly converts a Half value to a 128-bit signed integer, throwing an overflow exception for any values that fall outside the representable range.
public static explicit operator checked ExInt128(Half value)
Parameters
value
HalfThe value to convert.
Returns
- ExInt128
value
converted to a 128-bit signed integer.
Exceptions
- OverflowException
value
is not representable by ExInt128.