Click or drag to resize

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
Syntax
public static DataTable ToDataTable<T>(
	this T[] records
)

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: DataTable
The 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