EnumerableQuery<T> Class

Definition

Represents an IEnumerable<T> collection as an IQueryable<T> data source.

This API supports the product infrastructure and is not intended to be used directly from your code.

generic <typename T>
public ref class EnumerableQuery : System::Linq::EnumerableQuery, System::Collections::Generic::IEnumerable<T>, System::Linq::IOrderedQueryable<T>, System::Linq::IQueryable<T>, System::Linq::IQueryProvider
public class EnumerableQuery<T> : System.Linq.EnumerableQuery, System.Collections.Generic.IEnumerable<T>, System.Linq.IOrderedQueryable<T>, System.Linq.IQueryable<T>, System.Linq.IQueryProvider
type EnumerableQuery<'T> = class
    inherit EnumerableQuery
    interface IOrderedQueryable<'T>
    interface IQueryable
    interface IQueryProvider
    interface seq<'T>
    interface IEnumerable
    interface IQueryable<'T>
    interface IOrderedQueryable
Public Class EnumerableQuery(Of T)
Inherits EnumerableQuery
Implements IEnumerable(Of T), IOrderedQueryable(Of T), IQueryable(Of T), IQueryProvider

Type Parameters

T

The type of the data in the collection.

Inheritance
EnumerableQuery<T>
Implements

Constructors

EnumerableQuery<T>(Expression)

Initializes a new instance of the EnumerableQuery<T> class and associates the instance with an expression tree.

EnumerableQuery<T>(IEnumerable<T>)

Initializes a new instance of the EnumerableQuery<T> class and associates it with an IEnumerable<T> collection.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a textual representation of the enumerable collection or, if it is null, of the expression tree that is associated with this instance.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that can iterate through the associated IEnumerable<T> collection, or, if it is null, through the collection that results from rewriting the associated expression tree as a query on an IEnumerable<T> data source and executing it.

IEnumerable<T>.GetEnumerator()

Returns an enumerator that can iterate through the associated IEnumerable<T> collection, or, if it is null, through the collection that results from rewriting the associated expression tree as a query on an IEnumerable<T> data source and executing it.

IQueryable.ElementType

Gets the type of the data in the collection that this instance represents.

IQueryable.Expression

Gets the expression tree that is associated with or that represents this instance.

IQueryable.Provider

Gets the query provider that is associated with this instance.

IQueryProvider.CreateQuery(Expression)

Constructs a new EnumerableQuery<T> object and associates it with a specified expression tree that represents an IQueryable collection of data.

IQueryProvider.CreateQuery<S>(Expression)

Constructs a new EnumerableQuery<T> object and associates it with a specified expression tree that represents an IQueryable<T> collection of data.

IQueryProvider.Execute(Expression)

Executes an expression after rewriting it to call Enumerable methods instead of Queryable methods on any enumerable data sources that cannot be queried by Queryable methods.

IQueryProvider.Execute<S>(Expression)

Executes an expression after rewriting it to call Enumerable methods instead of Queryable methods on any enumerable data sources that cannot be queried by Queryable methods.

Extension Methods

CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Cast<TResult>(IQueryable)

Converts the elements of an IQueryable to the specified type.

OfType<TResult>(IQueryable)

Filters the elements of an IQueryable based on a specified type.

SortBy<T>(IQueryable<T>, String)

Specifies a sort order.

Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to