Decimal.CreateSaturating<TOther>(TOther) Methode

Definition

Erstellt einen instance des aktuellen Typs aus einem Wert, der alle Werte überlastt, die außerhalb des darstellbaren Bereichs des aktuellen Typs liegen.

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

Typparameter

TOther

Der value-Typ.

Parameter

value
TOther

Der Wert, der zum Erstellen der instance von TSelfverwendet wird.

Gibt zurück

Ein instance von TSelf erstellt, das aus valuesättigungt, wenn value außerhalb des darstellbaren Bereichs von TSelfliegt.

Implementiert

Gilt für: