Språk

UInt128.CreateTruncating<TOther>(TOther) Metod

Definition

Skapar en instans av den aktuella typen från ett värde och trunkerar alla värden som ligger utanför det representerarbara intervallet för den aktuella typen.

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

Typparametrar

TOther

Typen av value.

Parametrar

value
TOther

Värdet som används för att skapa instansen av TSelf.

Returer

En instans av TSelf skapad från value, trunkering om value den ligger utanför det representerarbara intervallet TSelf.

Implementeringar

Gäller för