IntPtr.CreateSaturating<TOther>(TOther) Méthode

Définition

Crée une instance du type actuel à partir d’une valeur, saturant toutes les valeurs qui se trouvent en dehors de la plage représentable du type actuel.

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static IntPtr CreateSaturating(TOther value) = System::Numerics::INumberBase<IntPtr>::CreateSaturating;
public static IntPtr CreateSaturating<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateSaturating : 'Other -> nativeint (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateSaturating(Of TOther As INumberBase(Of TOther)) (value As TOther) As IntPtr

Paramètres de type

TOther

Type d'élément value.

Paramètres

value
TOther

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

Retours

IntPtr

nativeint

Un instance de TSelf créé à partir de value, saturant si value se situe en dehors de la plage représentable de TSelf.

Implémente

S’applique à