using System.Collections.Generic; using System.Linq; namespace Encompass { internal class SimpleCycleComparer : IEqualityComparer> { public bool Equals(IEnumerable x, IEnumerable y) { return x.SequenceEqual(y); } public int GetHashCode(IEnumerable obj) { return obj.Aggregate(0, (current, next) => current.GetHashCode() ^ next.GetHashCode()); } } }