Quad.Create Checked<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.3
C#
An instance of TSelf created from value.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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
QuadAn instance of TSelf created from value.
Implements
INumberBase<TSelf>.CreateChecked<TOther>(TOther)Exceptions
Not | TOther is not supported. |
Overflow | value is not representable by TSelf. |