Class ListUtils

Class ListUtils

Namespace: Aspose.Tasks.Util
Assembly: Aspose.Tasks.dll (25.12.0)

Utility class for list processing.

public static class ListUtils

Inheritance

object ListUtils

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Methods

Apply<T>(IList<T>, IAlgorithm<T>, int)

Apply algorithm for each list element starting from specified position.

public static void Apply<T>(IList<T> list, IAlgorithm<T> algorithm, int startIndex)

Parameters

list IList <T>

List to process.

algorithm IAlgorithm <T>

Applied algorithm.

startIndex int

Start element position.

Type Parameters

T

The type of object to apply algorithm to.

Filter<T>(IList<T>, ICondition<T>)

Filter list elements by specified condition.

public static IList<T> Filter<T>(IList<T> list, ICondition<T> cond)

Parameters

list IList <T>

A list to process.

cond ICondition <T>

Condition used to filter the specified list.

Returns

IList <T>

Filtered list.

Type Parameters

T

The type of object to apply filter to.

Find<T>(IList<T>, ICondition<T>)

Find first occurrence of an list element which satisfy specified condition.

public static T Find<T>(IList<T> list, ICondition<T> cond)

Parameters

list IList <T>

A list to process.

cond ICondition <T>

Condition used to find an element in the specified list.

Returns

T

List element or null.

Type Parameters

T

The type of object to find.

 English