UInt16.INumberBase<UInt16>.TryConvertToTruncating<TOther> Metodo

Definizione

Prova a convertire un'istanza del tipo corrente in un altro tipo, troncando 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>.TryConvertToTruncating(System::UInt16 value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<System::UInt16>::TryConvertToTruncating;
static bool INumberBase<ushort>.TryConvertToTruncating<TOther> (ushort value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<System.UInt16>.TryConvertToTruncating : uint16 * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToTruncating(Of TOther As INumberBase(Of TOther)) (value As UShort, ByRef result As TOther) As Boolean Implements INumberBase(Of UShort).TryConvertToTruncating

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