Class RemoveFromCollection
Factory methods for RemoveFromCollection<T>.
public static class RemoveFromCollection
- Inheritance
-
objectRemoveFromCollection
Methods
For<T>(ICollection<T>, T)
Creates a new remove from collection command.
public static RemoveFromCollection<T> For<T>(ICollection<T> collection, T element) where T : notnull
Parameters
collection
ICollection<T>The collection to be modified.
element
TThe element to be removed from
collection
.
Returns
Type Parameters
T
The type of elements the collection contains.