INumberBase<TSelf>.CreateSaturating<TOther>(TOther) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 override TSelf CreateSaturating(TOther value);
public static virtual TSelf CreateSaturating<TOther>(TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateSaturating : 'Other -> 'Self (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Overrides Function CreateSaturating(Of TOther As INumberBase(Of TOther)) (value As TOther) As TSelf
Paramètres de type
- TOther
Type de value.
Paramètres
- value
- TOther
Valeur utilisée pour créer l’instance de TSelf.
Retours
Instance de création à partir de TSelfvalue, saturant si value elle se trouve en dehors de la plage représentée de TSelf.
Exceptions
La fonction TOther n'est pas prise en charge.