INumberBase<TSelf>.CreateSaturating<TOther>(TOther) メソッド

定義

現在の型のインスタンスを値から作成し、現在の型の表現可能な範囲外の値を飽和させます。

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static override TSelf CreateSaturating(TOther value);
public static virtual TSelf CreateSaturating<TOther>(TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateSaturating : 'Other -> 'Self (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Overrides Function CreateSaturating(Of TOther As INumberBase(Of TOther)) (value As TOther) As TSelf

型パラメーター

TOther

value の型。

パラメーター

value
TOther

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

返品

TSelf

TSelfから作成されたvalueのインスタンス。valueTSelfの表現可能な範囲外にある場合は飽和状態になります。

例外

TOther はサポートされません。

適用対象