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); } } }
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); }