UInt16.INumberBase<UInt16>.TryConvertToSaturating<TOther> Metodo

Definizione

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

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

Parametri di tipo

TOther

Tipo in cui value deve essere convertito.

Parametri

value
UInt16

Valore usato per creare l'istanza di TOther.

result
TOther

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

Restituisce

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

Implementazioni

Si applica a