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

定義

値を現在の型のインスタンスに変換しようとします。現在の型の表現可能な範囲外の値はすべて飽和状態になります。

protected:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool TryConvertFromSaturating(TOther value, [Runtime::InteropServices::Out] TSelf % result);
protected static abstract bool TryConvertFromSaturating<TOther>(TOther value, out TSelf result) where TOther : System.Numerics.INumberBase<TOther>;
static member TryConvertFromSaturating : 'Other * 'Self -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
Protected Shared Function TryConvertFromSaturating(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/&。それ以外の場合は。

適用対象