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