Int128.CreateSaturating<TOther>(TOther) 方法

定義

從值建立目前型別的實例,使落在目前類型可表示範圍以外的任何值飽和。

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

類型參數

TOther

value 的類型。

參數

value
TOther

值,用來建立 的 TSelf 實例。

傳回

value 建立的 TSelf 實例,如果 value 落在 的可表示範圍之外,則為 飽和。 TSelf

實作

適用於