Exemplo n.º 1
0
        private void IntersectNicely(OrderedHashSet <T> other)
        {
            LinkedListNode <T> curr = order.First;

            while (curr != null)
            {
                LinkedListNode <T> next = curr.Next;
                if (other.Contains(curr.Value))
                {
                    removeItem(curr.Value);
                }
                curr = next;
            }
        }
Exemplo n.º 2
0
 public bool Contains(T item)
 {
     return(sourceData.Contains(item));
 }