/// <summary> /// Copies the members of the Microsoft.SharePoint.Linq.EntitySet to the specified array beginning at the specified array index. /// </summary> /// <param name="array">The target array.</param> /// <param name="index">The zero-based index in the array at which copying begins.</param> /// <exception cref="System.NotImplementedException"></exception> public void CopyTo(Array array, int index) { ItemsCollection.Select(x => x.Value).ToArray().CopyTo(array, index); }
/// <summary> /// Returns an enumerator that iterates through a collection. /// </summary> /// <returns> /// An <see cref="T:System.Collections.IEnumerator" /> object that can be used to iterate through the collection. /// </returns> IEnumerator IEnumerable.GetEnumerator() { return(ItemsCollection.Select <KeyValuePair <int, TEntity>, TEntity>(x => x.Value).GetEnumerator()); }