CollectionExtensionsRemoveWhereT Method
Iterates through each item in the list. Allowing items to be removed from the list.
Namespace: Gemstone.Collections.CollectionExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.110 -- Release Build+3e0464f4461df4d3e1175b13966eb47ff832554d
public static int RemoveWhere<T>(
this List<T> list,
Func<T, bool> shouldRemove
)
JavaScript does not support generic types or methods.
- list ListT
- the list to iterate though
- shouldRemove FuncT, Boolean
- the function to call to determine
if the items should be removed from the list.
- T
- Type of ListT.
Int32
The number of items removed from the list.
In Visual Basic and C#, you can call this method as an instance method on any object of type
ListT. 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).
In order to minimize the overhead of a removal. Any item removed with be replaced with
the last item in the list. Therefore Sequence will not be preserved using this method.