Accept() public abstract method

Accepts the specified visitor by calling the appropriate Visit method on it.
public abstract Accept ( IYamlVisitor visitor ) : void
visitor IYamlVisitor /// A . ///
return void
Example #1
0
 /// <summary>
 /// Called when this object is visiting a key-value pair.
 /// </summary>
 /// <param name="key">The left (key) <see cref="YamlNode"/> that is being visited.</param>
 /// <param name="value">The right (value) <see cref="YamlNode"/> that is being visited.</param>
 protected virtual void VisitPair(YamlNode key, YamlNode value)
 {
     key.Accept(this);
     value.Accept(this);
 }
 /// <summary>
 /// Called when this object is visiting a key-value pair.
 /// </summary>
 /// <param name="key">The left (key) <see cref="YamlNode"/> that is being visited.</param>
 /// <param name="value">The right (value) <see cref="YamlNode"/> that is being visited.</param>
 protected virtual void VisitPair(YamlNode key, YamlNode value)
 {
     key.Accept(this);
     value.Accept(this);
 }
 protected override void VisitPair(YamlNode key, YamlNode value)
 {
     EnterContext(key as YamlScalarNode);
     value.Accept(this);
     ExitContext();
 }