Half.INumberBase<Half>.TryConvertToSaturating<TOther> Metodo

Definizione

Tenta di convertire un'istanza del tipo corrente in un altro tipo, saturazione di tutti i valori che non rientrano nell'intervallo rappresentabile del tipo corrente.

generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool System.Numerics.INumberBase<System.Half>.TryConvertToSaturating(Half value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<Half>::TryConvertToSaturating;
static bool INumberBase<Half>.TryConvertToSaturating<TOther> (Half value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<System.Half>.TryConvertToSaturating : Half * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToSaturating(Of TOther As INumberBase(Of TOther)) (value As Half, ByRef result As TOther) As Boolean Implements INumberBase(Of Half).TryConvertToSaturating

Parametri di tipo

TOther

Tipo in cui value deve essere convertito.

Parametri

value
Half

Valore utilizzato per creare l'istanza di TOther.

result
TOther

Quando termina, questo metodo contiene un'istanza di TOther convertita da value.

Restituisce

false se TOther non è supportato; in caso contrario, true.

Implementazioni

Si applica a