Int16.INumberBase<Int16>.TryConvertToChecked<TOther> Método

Definición

Intenta convertir una instancia del tipo actual en otro tipo, iniciando una excepción de desbordamiento para los valores que se encuentran fuera del intervalo representable del tipo actual.

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

Parámetros de tipo

TOther

Tipo al que value se debe convertir.

Parámetros

value
Int16

Valor que se usa para crear la instancia de TOther.

result
TOther

Cuando este método devuelve , contiene una instancia de TOther convertida de value.

Devoluciones

false es si TOther no se admite; de lo contrario, truees .

Implementaciones

Se aplica a