Method INumberBase<BigDecimal>.TryConvertToChecked
INumberBase<BigDecimal>.TryConvertToChecked<TOther>(BigDecimal, out TOther)
Tries to convert an instance of the the current type to another type, throwing an overflow exception for any values that fall outside the representable range of the current type.
Declaration
static bool INumberBase<BigDecimal>.TryConvertToChecked<TOther>(BigDecimal value, out TOther result) where TOther : INumberBase<TOther>
Parameters
Type | Name | Description |
---|---|---|
BigDecimal | value | The value which is used to create the instance of |
TOther | result | When this method returns, contains an instance of |
Returns
Type | Description |
---|---|
bool |
Type Parameters
Name | Description |
---|---|
TOther | The type to which |
Implements
Exceptions
Type | Condition |
---|---|
OverflowException |
|