/// <summary> /// Called when this object is visiting a <see cref="YamlStream"/>. /// </summary> /// <param name="stream"> /// The <see cref="YamlStream"/> that is being visited. /// </param> protected virtual void Visit(YamlStream stream) { VisitChildren(stream); }
/// <summary> /// Called after this object finishes visiting a <see cref="YamlStream"/>. /// </summary> /// <param name="stream"> /// The <see cref="YamlStream"/> that has been visited. /// </param> protected virtual void Visited(YamlStream stream) { // Do nothing. }
void IYamlVisitor.Visit(YamlStream stream) { Visit(stream); Visited(stream); }