Partager via


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

Définition

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

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

Paramètres de type

TOther

Type de value.

Paramètres

value
TOther

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

Retours

UIntPtr

unativeint

Instance de TSelf créée à partir de value, saturant si value tombe en dehors de la plage représentée de TSelf.

Implémente

S’applique à