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

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

戻り値

false がサポートされていない場合 TOther は 。それ以外の場合 trueは 。

適用対象