Quad.CreateChecked<TOther> Method

Creates an instance of the current type from a value, throwing an overflow exception for any values that fall outside the representable range of the current type.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
public static Quad CreateChecked<TOther>(
	TOther value
)
where TOther : Object, INumberBase<TOther>

Parameters

value  TOther
The value that's used to create the instance of TSelf.

Type Parameters

TOther
The type of value.

Return Value

Quad
An instance of TSelf created from value.

Implements

INumberBase<TSelf>.CreateChecked<TOther>(TOther)

Exceptions

NotSupportedExceptionTOther is not supported.
OverflowExceptionvalue is not representable by TSelf.

See Also