/// <summary> /// Returns an enumerator that iterates through the collection. /// </summary> /// <returns> /// A IEnumerator<T> that can be used to iterate through the collection. /// </returns> public IEnumerator <T> GetEnumerator() { return(QueryProvider.Execute <IEnumerable <T> >(Expression).GetEnumerator()); }
/// <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()); }
/// <summary> /// Initializes a new instance of LuceneQueryable. /// </summary> /// <param name="provider"> /// The QueryProvider to use. /// </param> internal LuceneQueryable(QueryProvider provider) : this(provider, new QueryContext()) { }