Ejemplo n.º 1
0
 protected virtual void CopyItemsTo(T[] array, int arrayIndex)
 {
     using (IEnumerator <S> e = InnerStore.GetEnumerator())
     {
         while (e.MoveNext() && arrayIndex < array.Length)
         {
             array[arrayIndex++] = GetItem(e.Current);
         }
     }
 }
Ejemplo n.º 2
0
 protected virtual bool ContainsItem(T value)
 {
     using (IEnumerator <S> e = InnerStore.GetEnumerator())
         while (e.MoveNext())
         {
             if (Equals(GetItem(e.Current), value))
             {
                 return(true);
             }
         }
     return(false);
 }