Decimal.CreateSaturating<TOther>(TOther) Metoda

Definice

Vytvoří instanci aktuálního typu z hodnoty a nasytí všechny hodnoty, které spadají mimo reprezentovatelný rozsah aktuálního typu.

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

Parametry typu

TOther

Typ .value

Parametry

value
TOther

Hodnota, která se používá k vytvoření instance .TSelf

Návraty

Instance TSelf vytvořená z value, která saturuje, pokud value spadá mimo reprezentovatelný rozsah .TSelf

Implementuje

Platí pro