Method MoveTo
MoveTo<T>(Stack<T>, T, int, IEqualityComparer<T>?)
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
stackStack<T>valueToMoveTValue to move.
indexintThe index where to move.
comparerIEqualityComparer<T>The comparison object.
Type Parameters
T