ReactiveList.RemoveMany(Func) method¶
Defined in
Type: ReactiveListReactiveList.Reactive.Collections
Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
public int RemoveMany(Func<T, bool> predicate)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from IReactiveList<T>. The member doesn't override them on this type.
Summary: Removes all elements that match the specified predicate from the collection.
Parameters
| Name | Type | Description |
|---|---|---|
predicate | Func | A function that returns true for elements that should be removed. |
Returns: int (opens in a new tab) -- The number of elements removed from the collection.
Remarks
The predicate runs exactly once per item, under the list lock, and the list is unchanged if it throws.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | Thrown when predicate is null. |