Table of Contents

Class AddToCollection

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

Factory methods for AddToCollection<T>.

public static class AddToCollection
Inheritance
object
AddToCollection

Methods

For<T>(ICollection<T>, T)

Creates a new add to collection command.

public static AddToCollection<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 added to collection.

Returns

AddToCollection<T>

Type Parameters

T

The type of elements the collection contains.