Table of Contents

Class RemoveFromCollection

Namespace
NanoByte.Common.Undo
Assembly
NanoByte.Common.dll

Factory methods for RemoveFromCollection<T>.

public static class RemoveFromCollection
Inheritance
object
RemoveFromCollection

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 T

The element to be removed from collection.

Returns

RemoveFromCollection<T>

Type Parameters

T

The type of elements the collection contains.