Predicates/SimpleParser/AbstractTree/NodeItem.cs
/// <summary>
/// Add a sibling node to the current one
/// </summary>
/// <param name="name">The name of the newly created node</param>
/// <returns>The new node</returns>
Add a sibling node to the current one
Add a sibling node to the current one
public NodeItem AddSibling(string name)
        {
            var newNode = new NodeItem(this.Parent, name);
            newNode.Kind = NodeKind.Unknown;
            Parent.NodeItems.Add(newNode);
            return newNode;
        }
public NodeItem AddSibling ( string name ) { var newNode = new NodeItem ( this . Parent , name ) ; newNode . Kind = NodeKind . Unknown ; Parent . NodeItems . Add ( newNode ) ; return newNode ; }
Add a sibling node to the current one
Add a sibling node to the current one
The new node
The new node
name
string
The name of the newly created node
The name of the newly created node