public void Accept(XmpNodeVisitor visitor) { visitor.Visit(this); if (children != null) { foreach (XmpNode child in children) { child.Accept(visitor); } } }
/// <summary> /// Calls the Visitor for this node and every child node. /// </summary> /// <param name="visitor"> /// A <see cref="XmpNodeVisitor"/> to access the node and the children. /// </param> public void Accept(XmpNodeVisitor visitor) { visitor.Visit(this); // TODO: what is with the qualifiers ? // either add them to be also visited, or add a comment if (children != null) { foreach (XmpNode child in children) { child.Accept(visitor); } } }
/// <summary> /// Calls the Visitor for this node and every child node. /// </summary> /// <param name="visitor"> /// A <see cref="XmpNodeVisitor"/> to access the node and the children. /// </param> public void Accept(XmpNodeVisitor visitor) { visitor.Visit (this); // TODO: what is with the qualifiers ? // either add them to be also visited, or add a comment if (children != null) { foreach (XmpNode child in children) { child.Accept (visitor); } } }