示例#1
0
 /// <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);
 }
示例#2
0
 /// <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());
 }