Exemple #1
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());
 }
Exemple #2
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());
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of LuceneQueryable.
 /// </summary>
 /// <param name="provider">
 /// The QueryProvider to use.
 /// </param>
 internal LuceneQueryable(QueryProvider provider) : this(provider, new QueryContext())
 {
 }