NFloat.INumberBase<NFloat>.TryConvertToChecked<TOther> 方法

定义

尝试将当前类型的实例转换为另一种类型,从而对超出当前类型的可表示范围的任何值引发溢出异常。

generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool System.Numerics.INumberBase<System.Runtime.InteropServices.NFloat>.TryConvertToChecked(System::Runtime::InteropServices::NFloat value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<System::Runtime::InteropServices::NFloat>::TryConvertToChecked;
static bool INumberBase<NFloat>.TryConvertToChecked<TOther> (System.Runtime.InteropServices.NFloat value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<System.Runtime.InteropServices.NFloat>.TryConvertToChecked : System.Runtime.InteropServices.NFloat * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToChecked(Of TOther As INumberBase(Of TOther)) (value As NFloat, ByRef result As TOther) As Boolean Implements INumberBase(Of NFloat).TryConvertToChecked

类型参数

TOther

应转换为的类型 value

参数

value
NFloat

用于创建 实例的值 TOther

result
TOther

此方法返回时,包含从 value转换的 实例TOther

返回

false 如果 TOther 不支持 ,则为 ;否则为 true

实现

适用于