public void Pop(ControlRootBase root) { if (ReferenceEquals(_stack.Peek(), root) == false) { throw new InvalidOperationException(); } _stack.Pop(); }
public void Push(ControlRootBase root) { _stack.Push(root); }