UInt64.CreateSaturating<TOther>(TOther) Metoda

Definicja

Tworzy wystąpienie bieżącego typu na podstawie wartości, usytując wszystkie wartości, które wykraczają poza reprezentowany zakres bieżącego typu.

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

Parametry typu

TOther

Typ .value

Parametry

value
TOther

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

Zwraca

Wystąpienie utworzone na TSelf podstawie valueklasy , saturating, jeśli value znajduje się poza reprezentowanym zakresem TSelf.

Implementuje

Dotyczy