MoreLinq
ToDataTable<(Of <(<'T, TTable>)>)> Method (source, table)
NamespacesMoreLinqMoreEnumerableToDataTable<(Of <<'(T, TTable>)>>)(IEnumerable<(Of <<'(T>)>>), TTable)
Appends elements in the sequence as rows of a given DataTable object.
Declaration Syntax
C#Visual BasicVisual C++
public static TTable ToDataTable<T, TTable>(
	this IEnumerable<T> source,
	TTable table
)
where TTable : DataTable
<ExtensionAttribute> _
Public Shared Function ToDataTable(Of T, TTable As DataTable) ( _
	source As IEnumerable(Of T), _
	table As TTable _
) As TTable
public:
[ExtensionAttribute]
generic<typename T, typename TTable>
where TTable : DataTable
static TTable ToDataTable(
	IEnumerable<T>^ source, 
	TTable table
)
Generic Template Parameters
T
The type of the elements of source.
TTable

[Missing <typeparam name="TTable"/> documentation for "M:MoreLinq.MoreEnumerable.ToDataTable``2(System.Collections.Generic.IEnumerable{``0},``1)"]

Parameters
source (IEnumerable<(Of <(<'T>)>)>)
The source.
table (TTable)

[Missing <param name="table"/> documentation for "M:MoreLinq.MoreEnumerable.ToDataTable``2(System.Collections.Generic.IEnumerable{``0},``1)"]

Return Value
A DataTable or subclass representing the source.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'T>)>)>. When you use instance method syntax to call this method, omit the first parameter.
Remarks
This operator uses immediate execution.

Assembly: MoreLinq (Module: MoreLinq.dll) Version: 1.0.16006.0 (1.0.16006.1845)