共用方式為


Int128.CreateTruncating<TOther>(TOther) 方法

定義

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

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

類型參數

TOther

value的類型。

參數

value
TOther

值,用來建立 TSelf實例。

傳回

value建立之 TSelf 實例,如果 value 落在可表示 TSelf範圍之外,則會截斷 。

實作

適用於