AsEnumerable(TRow) Method
Collapse the table of content
Expand the table of content

TypedTableBaseExtensions.AsEnumerable<TRow> Method (TypedTableBase<TRow>)

.NET Framework (current version)
 

Enumerates the data row elements of the TypedTableBase<T> and returns an EnumerableRowCollection<TRow> object, where the generic parameter T is DataRow. This object can be used in a LINQ expression or method query. 

Namespace:   System.Data
Assembly:  System.Data.DataSetExtensions (in System.Data.DataSetExtensions.dll)

public static EnumerableRowCollection<TRow> AsEnumerable<TRow>(
	this TypedTableBase<TRow> source
)
where TRow : DataRow

Parameters

source
Type: System.Data.TypedTableBase<TRow>

The source TypedTableBase<T> to make enumerable.

Return Value

Type: System.Data.EnumerableRowCollection<TRow>

An EnumerableRowCollection<TRow> object, where the generic parameter T is DataRow.

Type Parameters

TRow

The type to convert the elements of the source to.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft