How to compare the size of bytearray in c# code example Example: best way to compare byte array c# return a1.SequenceEqual(b1);