Click or drag to resize

DataListSetSequenceDataItem Method

Data list puts new sequence number (when has a new sequence or prameter pAlwaysUpdate is true) and list sort by sequence

Namespace:  SOWIData.Helper
Assembly:  SOWIData.Helper (in SOWIData.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static List<DataItem> SetSequence<DataItem>(
	this List<DataItem> pList,
	int pSequenceStep = 2,
	bool pAlwaysUpdate = false
)

Parameters

pList
Type: System.Collections.GenericListDataItem
List of data items
pSequenceStep (Optional)
Type: SystemInt32
Sequence step as number of increment
pAlwaysUpdate (Optional)
Type: SystemBoolean
Field Sequence puts new value

Type Parameters

DataItem
Data item type

Return Value

Type: ListDataItem
Adjusted sorted list of data items

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ListDataItem. 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).
Remarks
Data item type (class) must be implemented interface ISequence

If prameter NewSequence greater 0 then puts new sequence. The sequence number increment by parameter SequenceStep.

See Also