public virtual void Visit(SimpleTreeNodeList <TLeaf> treeNode) { foreach (var item in treeNode) { Visit(item); } }
public static List <SimpleTreeNode <DS.TagNode> > GetNodeList(this SimpleTreeNodeList <DS.TagNode> dnodColl) { var ret = new List <SimpleTreeNode <DS.TagNode> >(); foreach (SimpleTreeNode <DS.TagNode> _dnode in dnodColl) { ret.Add(_dnode); ret.AddRange(_dnode.Children.GetNodeList()); } return(ret); }