Click or drag to resize

IReadableColumnExtensionsGetCommonDataTableAndGroupNumberFromColumns Method

Try to get a common data table and a group number from all columns (here we don't rely on DataTable and GroupNumber of this document).

Namespace: Altaxo.Data
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void GetCommonDataTableAndGroupNumberFromColumns(
	this IEnumerable<IReadableColumn> columns,
	out bool dataTableIsNotUniform,
	out DataTable?? commonDataTable,
	out bool groupNumberIsNotUniform,
	out int? commonGroupNumber
)

Parameters

columns  IEnumerableIReadableColumn
The columns to consider. ITransformedReadableColumn will be stripped to get the underlying data column.
dataTableIsNotUniform  Boolean
If the columns gives different result for their underlying data table, the result here will be true.
commonDataTable  DataTable
If the previous parameter results in false, this is the common data table of all columns. If the previous parameter is true, this is the first underlying data table that could be deduced from the columns. The result is null if no underlying table could be deduced from the columns.
groupNumberIsNotUniform  Boolean
If the columns gives different result for their group number, the result here will be true.
commonGroupNumber  NullableInt32
If the previous parameter results in false, this is the common group number of all columns. If the previous parameter results in true, this is the first group number that could be deduced from the columns. The result is null if no group number could be deduced from the columns.

Usage Note

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