public static bool Compare(IEnumerable left, IEnumerable right) { if (object.ReferenceEquals((object)left, (object)right)) { return(true); } if (object.ReferenceEquals((object)left, (object)null) || object.ReferenceEquals((object)right, (object)null)) { return(false); } else { return(Utilities.Compare(left.GetEnumerator(), right.GetEnumerator())); } }