Helper.CompareArrays(Object[], Object[]) 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.
Compare deux tableaux
public:
static bool CompareArrays(cli::array <System::Object ^> ^ a, cli::array <System::Object ^> ^ b);
public static bool CompareArrays(object[] a, object[] b);
static member CompareArrays : obj[] * obj[] -> bool
Public Shared Function CompareArrays (a As Object(), b As Object()) As Boolean
Paramètres
- a
- Object[]
Le premier tableau à avoir dans la comparaison.
- b
- Object[]
Le deuxième tableau que vous voulez comparer au premier.
Retours
vrai si les deux tableaux sont nuls ; false est retourné si l’un ou l’autre tableau est nul, leurs longueurs sont différentes, ou si un élément d’un est différent de l’élément correspondant de l’autre tableau.