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.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static int RemoveWhere<T>(
this List<T> list,
Func<T, bool> shouldRemove
)
<ExtensionAttribute>
Public Shared Function RemoveWhere(Of T) (
list As List(Of T),
shouldRemove As Func(Of T, Boolean)
) As Integer
public:
[ExtensionAttribute]
generic<typename T>
static int RemoveWhere(
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. Sequence will not be preserved using this method.