示例#1
0
        public Node Move(string name)
        {
            if (this.IsLeaf())
            {
                throw new NullReferenceException(nameof(Node));
            }
            var child = Childs.Find(c => c.Name == name);

            if (child is null)
            {
                throw new NullReferenceException(nameof(Node));
            }
            return(child);
        }
示例#2
0
 public Node ChildByGuid(Guid guid)
 {
     return(Childs.Find(node => node.Guid == guid));
 }
示例#3
0
 private Node TryChildByLabel(string label)
 {
     return(Childs.Find(node => node.label == label));
 }
示例#4
0
 public XmlData SearchChild(System.Predicate <XmlData> func)
 {
     return(Childs.Find(func));
 }