Skip to content

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

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, or null if input is null.