public void accept(Department dp) { foreach (var item in list) { item.accept(dp); } }
public void accept(Department handler) { handler.visit(this); }