DataExtensions.ToDataTable<C>(IDataFrame, IEnumerable<C>) Method

Constructs a data table from the specified columns a data frame.

Definition

Namespace: Extreme.Data
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
C#
public static DataTable ToDataTable<C>(
	this IDataFrame dataFrame,
	IEnumerable<C> columnKeys
)

Parameters

dataFrame  IDataFrame
The data frame to convert.
columnKeys  IEnumerable<C>
A sequence of column keys.

Type Parameters

C
The type of the column keys of the data frame.

Return Value

DataTable
A data table containing the columns in columnKeys in dataFrame.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataFrame. 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