static bool eq(object[] a, object[] b) { if (a == b) return true; if (a == null || b == null) return false; if (a.Length != b.Length) return false; bool alleq = true; for (int i = 0; i < a.Length; i++) if (!a[i].Equals(b[i])) alleq = false; if (alleq) return true; ResSet xa = new ResSet(a); ResSet xb = new ResSet(b); xa.RetainAll(xb); return xa.Count == xb.Count; }