public bool Equals()

in src/Proton/Utilities/ArraryDeque.cs [464:494]


      public bool Equals(IEnumerable<T> other)
      {
         if (other == null || other.Count() != Count)
         {
            return false;
         }

         if (other == this)
         {
            return true;
         }

         foreach (T thisValue in this)
         {
            foreach (T otherValue in other)
            {
               if ((thisValue == null && otherValue != null) ||
                   (thisValue != null && otherValue == null))
               {
                  return false;
               }

               if (thisValue?.Equals(otherValue) ?? (thisValue == null && otherValue == null))
               {
                  return true;
               }
            }
         }

         return false;
      }