/// <summary> /// Adds the specified node to the collection of nodes with unresolved aliases. /// </summary> /// <param name="node"> /// The <see cref="YamlNode"/> that has unresolved aliases. /// </param> public void AddNodeWithUnresolvedAliases(YamlNode node) { nodesWithUnresolvedAliases.Add(node); }
/// <summary> /// Initializes a new instance of the <see cref="YamlDocument"/> class with a single scalar node. /// </summary> public YamlDocument(string rootNode) { RootNode = new YamlScalarNode(rootNode); }
/// <summary> /// Provides a basic implementation of Object.Equals /// </summary> protected bool Equals(YamlNode other) { // Do not use the anchor in the equality comparison because that would prevent anchored nodes from being found in dictionaries. return(SafeEquals(Tag, other.Tag)); }
/// <summary> /// Initializes a new instance of the <see cref="YamlDocument"/> class. /// </summary> public YamlDocument(YamlNode rootNode) { RootNode = rootNode; }