INumberBase<TSelf>.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.

protected:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool TryConvertToTruncating(TSelf value, [Runtime::InteropServices::Out] TOther % result);
protected static abstract bool TryConvertToTruncating<TOther>(TSelf value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member TryConvertToTruncating : 'Self * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
Protected Shared Function TryConvertToTruncating(Of TOther As INumberBase(Of TOther)) (value As TSelf, ByRef result As TOther) As Boolean

Paramètres de type

TOther

Type vers lequel value être converti.

Paramètres

value
TSelf

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.

S’applique à