/// <summary> /// 获取所有子节点 /// </summary> public IEnumerable <IHtmlNode> Nodes() { if (_nodeCollection == null) { _nodeCollection = new DomNodeCollection(this); } return(_nodeCollection.HtmlNodes); }
/// <summary> /// 创建一个 DomFragment 实例 /// </summary> /// <param name="manager">文档碎片管理器</param> public DomFragment(DomFragmentManager manager) { _manager = manager; _nodeCollection = new DomNodeCollection(this); }