MoreLinq
ToDataTable<(Of <(<'T>)>)> Method (source)
NamespacesMoreLinqMoreEnumerableToDataTable<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>))
Converts a sequence to a DataTable object.
Declaration Syntax
C#Visual BasicVisual C++
public static DataTable ToDataTable<T>(
	this IEnumerable<T> source
)
<ExtensionAttribute> _
Public Shared Function ToDataTable(Of T) ( _
	source As IEnumerable(Of T) _
) As DataTable
public:
[ExtensionAttribute]
generic<typename T>
static DataTable^ ToDataTable(
	IEnumerable<T>^ source
)
Generic Template Parameters
T
The type of the elements of source.
Parameters
source (IEnumerable<(Of <(<'T>)>)>)
The source.
Return Value
A DataTable 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)