Byte.INumberBase<Byte>.TryConvertToChecked<TOther> Metodo

Definizione

Tenta di convertire un'istanza del tipo corrente in un altro tipo, generando un'eccezione di overflow per 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>.TryConvertToChecked(System::Byte value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<System::Byte>::TryConvertToChecked;
static bool INumberBase<byte>.TryConvertToChecked<TOther> (byte value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<System.Byte>.TryConvertToChecked : byte * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToChecked(Of TOther As INumberBase(Of TOther)) (value As Byte, ByRef result As TOther) As Boolean Implements INumberBase(Of Byte).TryConvertToChecked

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