Class SetInList
Factory methods for SetInList<T>.
Namespace: NanoByte.Common.Undo
Assembly: NanoByte.Common.dll
Syntax
public static class SetInList : Object
Methods
For<T>(IList<T>, T, T)
Creates a new set in list command.
Declaration
public static SetInList<T> For<T>(IList<T> list, T oldElement, T newElement)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | list | The list to be modified. |
T | oldElement | The old element currently in the |
T | newElement | The new element to take the place of |
Returns
Type | Description |
---|---|
SetInList<T> |
Type Parameters
Name | Description |
---|---|
T | The type of elements the list contains. |