ExtensionsFileHelpersToDataTableT Method |
Generic extension method for arrays that returns the array records
in a DataTable.
Namespace:
FileHelpers
Assembly:
FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntaxpublic static DataTable ToDataTable<T>(
this T[] records
)
<ExtensionAttribute>
Public Shared Function ToDataTable(Of T) (
records As T()
) As DataTable
Parameters
- records
- Type: T
The array to transform into a DataTable
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:FileHelpers.ExtensionsFileHelpers.ToDataTable``1(``0[])"]
Return Value
Type:
DataTableThe array records in a DataTable.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also