Click or drag to resize

DataTableETLToDataTableTSource Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
To the data table: https://www.codeproject.com/Tips/784090/Conversion-Between-DataTable-and-List-in-Csharp Adjusted code: introduced custom flags

Namespace:  imbSCI.DataComplex.extensions.data.operations
Assembly:  imbSCI.DataComplex (in imbSCI.DataComplex.dll) Version: 0.3.70.
Syntax
C#
public static DataTable ToDataTable<TSource>(
	this IList<TSource> data,
	BindingFlags flags = BindingFlags.Default
)
Request Example View Source

Parameters

data
Type: System.Collections.GenericIListTSource
The data.
flags (Optional)
Type: System.ReflectionBindingFlags

Type Parameters

TSource
The type of the source.

Return Value

Type: DataTable

Usage Note

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