Class AddToCollection
Factory methods for AddToCollection<T>.
public static class AddToCollection
- Inheritance
-
objectAddToCollection
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
TThe element to be added to
collection
.
Returns
Type Parameters
T
The type of elements the collection contains.