Show / Hide Table of Contents

Class SetInList

Factory methods for SetInList<T>.

Inheritance
Object
SetInList
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 list to be replaced.

T newElement

The new element to take the place of oldElement in the list.

Returns
Type Description
SetInList<T>
Type Parameters
Name Description
T

The type of elements the list contains.

In This Article
Back to top Copyright Bastian Eicher