Byte.INumberBase<Byte>.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.Byte>.TryConvertToTruncating(System::Byte value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<System::Byte>::TryConvertToTruncating;
static bool INumberBase<byte>.TryConvertToTruncating<TOther> (byte value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<System.Byte>.TryConvertToTruncating : byte * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToTruncating(Of TOther As INumberBase(Of TOther)) (value As Byte, ByRef result As TOther) As Boolean Implements INumberBase(Of Byte).TryConvertToTruncating

Parametri di tipo

TOther

Tipo in cui value deve essere convertito.

Parametri

value
Byte

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