INumberBase<TSelf>.CreateSaturating<TOther>(TOther) Metoda

Definicja

Tworzy wystąpienie bieżącego typu z wartości, saturując wszystkie wartości, które mieszczą się poza reprezentatywnym zakresem bieżącego typu.

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static override TSelf CreateSaturating(TOther value);
public static virtual TSelf CreateSaturating<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateSaturating : 'Other -> 'Self (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Overrides Function CreateSaturating(Of TOther As INumberBase(Of TOther)) (value As TOther) As TSelf

Parametry typu

TOther

Typ elementu value.

Parametry

value
TOther

Wartość używana do utworzenia wystąpienia klasy TSelf.

Zwraca

TSelf

Wystąpienie utworzone z valueklasy , saturujące, jeśli value znajduje się poza reprezentatywnym zakresem TSelf.TSelf

Wyjątki

TOther nie jest obsługiwane.

Dotyczy