Class ReplaceInList
Factory methods for ReplaceInList<T>.
public static class ReplaceInList
- Inheritance
-
objectReplaceInList
Methods
For<T>(IList<T>, T, T)
Creates a new replace in list command.
public static ReplaceInList<T> For<T>(IList<T> list, T oldElement, T newElement) where T : notnull
Parameters
listIList<T>The collection to be modified.
oldElementTThe element to be removed from
list.newElementTThe element to be added to
list.
Returns
Type Parameters
TThe type of elements the list contains.