Int16.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 short CreateSaturating(TOther value) = System::Numerics::INumberBase<short>::CreateSaturating;
public static short CreateSaturating<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateSaturating : 'Other -> int16 (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateSaturating(Of TOther As INumberBase(Of TOther)) (value As TOther) As Short

Parametry typu

TOther

Typ elementu value.

Parametry

value
TOther

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

Zwraca

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

Implementuje

Dotyczy