Class SetInList
Factory methods for SetInList<T>.
public static class SetInList
- Inheritance
-
objectSetInList
Methods
For<T>(IList<T>, T, T)
Creates a new set in list command.
public static SetInList<T> For<T>(IList<T> list, T oldElement, T newElement) where T : notnull
Parameters
listIList<T>The list to be modified.
oldElementTThe old element currently in the
listto be replaced.newElementTThe new element to take the place of
oldElementin thelist.
Returns
- SetInList<T>
Type Parameters
TThe type of elements the list contains.