ConsoleKeyInfo.Equality(ConsoleKeyInfo, ConsoleKeyInfo) Opérateur
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.
Indique si les objets spécifiés ConsoleKeyInfo sont égaux.
public:
static bool operator ==(ConsoleKeyInfo a, ConsoleKeyInfo b);
public static bool operator ==(ConsoleKeyInfo a, ConsoleKeyInfo b);
static member ( = ) : ConsoleKeyInfo * ConsoleKeyInfo -> bool
Public Shared Operator == (a As ConsoleKeyInfo, b As ConsoleKeyInfo) As Boolean
Paramètres
Premier objet à comparer.
Deuxième objet à comparer.
Retours
true si a est égal à b; sinon, false.
Remarques
Deux ConsoleKeyInfo objets sont égaux si leurs propriétés correspondantes KeyCharKeyet Modifiers leurs propriétés sont égales.
La méthode équivalente pour cet opérateur est ConsoleKeyInfo.Equals(ConsoleKeyInfo).