Int16.INumberBase<Int16>.TryConvertToTruncating<TOther> Méthode

Définition

Tente de convertir une instance du type actuel en un autre type, en tronqué toutes les valeurs qui se trouvent en dehors de la plage représentée du type actuel.

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

Paramètres de type

TOther

Type vers lequel value être converti.

Paramètres

value
Int16

Valeur utilisée pour créer l’instance de TOther.

result
TOther

Lorsque cette méthode est retournée, contient une instance de TOther conversion à partir de value.

Retours

false s’il TOther n’est pas pris en charge ; sinon, true.

Implémente

S’applique à