Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing byte arrays does not work
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01489235
Message ID:
01489244
Vues:
43
>Just checking for non-equality (!=) says the byte arrays are different, if I loop though all the elements I find that the byte arrays are the same. I am trying to come up with a good reason why it was implemented like this. Any help is appreciated.
>

That's just how byte arrays (and string arrays, etc.) are implemented. I would guess it was implemented this way because you start to get into a grey area as to it's behavior otherwise, ex. Is an array the same if all the elements exist but aren't in the same order? I'm sure they thought, "I don't know" and "it depends" and decided to leave it up to the developer to figure it out.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform