Click or drag to resize

ListExtensionsRemoveWhereT(IListT, FuncT, Boolean) Method

Removes all items for which the predicate function returns true.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void RemoveWhere<T>(
	this IList<T> list,
	Func<T, bool> predicate
)

Parameters

list  IListT
The list.
predicate  FuncT, Boolean
The predicate function. The first argument is the item. If the function returns true, the item is removed from the list.

Type Parameters

T
Type of list items

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. 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
The list is iterated backwards, starting from the last item in the list, and ending with the first item in the list.
See Also