Nyelv

Decimal.CreateTruncating<TOther>(TOther) Metódus

Definíció

Az aktuális típus egy példányát hozza létre egy értékből, és csonkolja az aktuális típus ábrázolható tartományán kívül eső értékeket.

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

Típusparaméterek

TOther

A típus value.

Paraméterek

value
TOther

A példány TSelflétrehozásához használt érték.

Válaszok

A létrehozandó példány TSelf csonkolása, ha value az a reprezentáló tartományon valuekívül TSelfesik.

Megvalósítás

A következőre érvényes: