Table of Contents

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 ExUInt128

The value to convert.

Returns

byte

value converted to a byte.

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 ExUInt128

The value to convert.

Returns

char

value converted to a char.

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 ExUInt128

The value to convert.

Returns

short

value converted to a short.

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 ExUInt128

The value to convert.

Returns

int

value converted to a int.

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 ExUInt128

The value to convert.

Returns

long

value converted to a long.

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 ExUInt128

The value to convert.

Returns

ExInt128

value converted to a ExInt128.

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 ExUInt128

The value to convert.

Returns

nint

value converted to a nint.

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 ExUInt128

The value to convert.

Returns

sbyte

value converted to a sbyte.

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 ExUInt128

The value to convert.

Returns

ushort

value converted to a ushort.

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 ExUInt128

The value to convert.

Returns

uint

value converted to a uint.

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 ExUInt128

The value to convert.

Returns

ulong

value converted to a ulong.

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 ExUInt128

The value to convert.

Returns

nuint

value converted to a nuint.

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 double

The 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 short

The 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 int

The 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 long

The 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 nint

The 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 sbyte

The 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 float

The 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 Half

The value to convert.

Returns

ExUInt128

value converted to a 128-bit unsigned integer.

Exceptions

OverflowException

value is not representable by ExUInt128.