IntPtr.INumberBase<IntPtr>.TryConvertToSaturating<TOther> Méthode

Définition

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

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

Paramètres de type

TOther

Type vers lequel value doit être converti.

Paramètres

value
IntPtr

nativeint

Valeur utilisée pour créer le instance de TOther.

result
TOther

Lorsque cette méthode retourne, contient une instance de TOther convertie à partir de value.

Retours

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

Implémente

S’applique à