Class RemoveFromCollection
Factory methods for RemoveFromCollection<T>.
Namespace: NanoByte.Common.Undo
Assembly: NanoByte.Common.dll
Syntax
public static class RemoveFromCollection : Object
Methods
For<T>(ICollection<T>, T)
Creates a new remove from collection command.
Declaration
public static RemoveFromCollection<T> For<T>(ICollection<T> collection, T element)
Parameters
Type | Name | Description |
---|---|---|
ICollection<T> | collection | The collection to be modified. |
T | element | The element to be removed from |
Returns
Type | Description |
---|---|
RemoveFromCollection<T> |
Type Parameters
Name | Description |
---|---|
T | The type of elements the collection contains. |