static bool Equals(byte[] lhs, byte[] rhs) { if (lhs.Length != rhs.Length) { return false; } for (int i = 0; i<lhs.Length; ++i) { if (lhs[i] != rhs[i]) { return false; } } return true; } }