C# - byte-array-Vergleich

Habe ich zwei byte-arrays, die in C# mit .NET 3.0.

Was ist der "effizienteste" Weg, um zu vergleichen, ob zwei byte-arrays enthält den gleichen Inhalt für jedes element?

Z. B. byte-array {0x1, 0x2} ist das gleiche wie {0x1, 0x2}. Aber byte-array {0x1, 0x2} - und byte-array {0x2, 0x1} sind nicht das gleiche.

InformationsquelleAutor George2 | 2009-09-07

Schreibe einen Kommentar