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

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