Table of Contents

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 ExInt128

The value to convert.

Returns

byte

value converted to a byte.

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 ExInt128

The value to convert.

Returns

char

value converted to a char.

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 ExInt128

The value to convert.

Returns

short

value converted to a short.

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 ExInt128

The value to convert.

Returns

int

value converted to a int.

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 ExInt128

The value to convert.

Returns

long

value converted to a long.

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 ExInt128

The value to convert.

Returns

nint

value converted to a nint.

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 ExInt128

The value to convert.

Returns

sbyte

value converted to a sbyte.

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 ExInt128

The value to convert.

Returns

ushort

value converted to a ushort.

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 ExInt128

The value to convert.

Returns

uint

value converted to a uint.

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 ExInt128

The value to convert.

Returns

ulong

value converted to a ulong.

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 ExInt128

The value to convert.

Returns

ExUInt128

value converted to a ExUInt128.

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 ExInt128

The value to convert.

Returns

nuint

value converted to a nuint.

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 double

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

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

The value to convert.

Returns

ExInt128

value converted to a 128-bit signed integer.

Exceptions

OverflowException

value is not representable by ExInt128.