Method MoveTo | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

MoveTo(Stack, T, int, IEqualityComparer)

Move the stack object value to the index.

public static void MoveTo<T>(this Stack<T> stack, T valueToMove, int index = 0, IEqualityComparer<T> comparer = null)

Parameters

stack Stack

The stack object.

valueToMove T

Value to move.

index int

The index where to move.

comparer IEqualityComparer

The comparison object.

Type Parameters

T

The stack object type.