INumberBase<TSelf>.TryConvertFromTruncating<TOther> メソッド

定義

現在の型の表現可能範囲外の値を切り捨てて、現在の型のインスタンスに値を変換しようとします。

protected:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool TryConvertFromTruncating(TOther value, [Runtime::InteropServices::Out] TSelf % result);
protected static abstract bool TryConvertFromTruncating<TOther>(TOther value, out TSelf result) where TOther : System.Numerics.INumberBase<TOther>;
static member TryConvertFromTruncating : 'Other * 'Self -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
Protected Shared Function TryConvertFromTruncating(Of TOther As INumberBase(Of TOther)) (value As TOther, ByRef result As TSelf) As Boolean

型パラメーター

TOther

value の型。

パラメーター

value
TOther

TSelfのインスタンスの作成に使用される値。

result
TSelf

このメソッドが戻るときに、TSelfから変換されたvalueのインスタンスが格納されます。

返品

がサポートされていない場合は a0/&。それ以外の場合は。

適用対象