Int16.INumberBase<Int16>.TryConvertToChecked<TOther> Metoda

Definice

Pokusí se převést instanci aktuálního typu na jiný typ, vyvolá výjimku přetečení pro všechny hodnoty, které spadají mimo reprezentovatelný rozsah aktuálního typu.

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

Parametry typu

TOther

Typ, na který value se má převést.

Parametry

value
Int16

Hodnota, která se používá k vytvoření instance objektu TOther.

result
TOther

Když se tato metoda vrátí, obsahuje instanci TOther převedené z value.

Návraty

false pokud TOther se nepodporuje, truev opačném případě .

Implementuje

Platí pro