Reputation:
Well what i need to do is compare two byte arrays byte by byte and return there difference in int so then I'll use them in a progress bar.
But I don't have a single idea how could i do this. just give me a pseudo code. or some sort of explanation It will be helpful for me
Upvotes: 1
Views: 1039
Reputation: 34433
If you just want a count of the number of differences try this
byte[] array1 = new byte[2];
byte[] array2 = new byte[2];
int diff = array1.Where((x, i) => x != array2[i]).Count();
Upvotes: 3