public override object Clone() { lock (stack) { return(Stack.Synchronized((Stack)stack.Clone())); } }