CircularListTFindLast Method

Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the CircularListT.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public T FindLast(
	Predicate<T> match
)

Parameters

match  PredicateT
A delegate that defines the conditions of the element to search for.

Return Value

T
The last element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type T.

Remarks

This method performs a linear search; therefore, this method is an O(n) operation.

See Also