Skip to content

StackCopier<T> Methods

Copier for System.Collections.Generic.Stack.

DeepCopy(Stack<T>, CopyContext)

View source
public Stack<T> DeepCopy(Stack<T> input, CopyContext context)
Creates a deep copy of the provided input.

Parameters

inputStack<T>
The input.
contextCopyContext
The context.

Returns

A copy of input.

DeepCopy(Stack<T>, Stack<T>, CopyContext)

View source
public void DeepCopy(Stack<T> input, Stack<T> output, CopyContext context)
Clones members from input and copies them to output.

Parameters

inputStack<T>
The input.
outputStack<T>
The output.
contextCopyContext
The context.