Udostępnij za pośrednictwem


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

Parametry typu

TOther

Typ value.

Parametry

value
TOther

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

Zwraca

Wystąpienie TSelf utworzone na podstawie value, sytujące, jeśli value wypada poza godny reprezentowania zakres TSelf.

Implementuje

Dotyczy