Exemplo n.º 1
0
 /// <summary>
 /// Returns an enumerator that iterates through a collection.
 /// </summary>
 /// <returns>
 /// An IEnumerator object that can be used to iterate through the collection.
 /// </returns>
 IEnumerator IEnumerable.GetEnumerator()
 {
     return(((IEnumerable)QueryProvider.Execute(Expression)).GetEnumerator());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns an enumerator that iterates through the collection.
 /// </summary>
 /// <returns>
 /// A IEnumerator&lt;T&gt; that can be used to iterate through the collection.
 /// </returns>
 public IEnumerator <T> GetEnumerator()
 {
     return(QueryProvider.Execute <IEnumerable <T> >(Expression).GetEnumerator());
 }