public void Remove(IElementInterface element) { _elements.Remove(element); }
//if we want to restrict access for some visitors //List<IVisitor> bannedVisitors = new List<IVisitor>() { new ConcreteVisitorB() }; public void Add(IElementInterface element) { _elements.Add(element); }