DeepCopy(Stack<T>, CopyContext)
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. 