/// <summary> /// Create a new DomFragment using the provided DomIndex instance. /// </summary> /// /// <param name="domIndex"> /// A DomIndex provider /// </param> public DomFragment(IDomIndex domIndex) : base(domIndex) { }
/// <summary> /// Create a new, empty DOM document using the provided DomIndex instance /// </summary> /// /// <param name="domIndex"> /// An index provider /// </param> public DomDocument(IDomIndex domIndex) : base() { DocumentIndex = domIndex ?? CsQuery.Config.DomIndexProvider.GetDomIndex(); }
private DomIndexFeatures GetFeatures(IDomIndex index) { return((index is IDomIndexQueue ? DomIndexFeatures.Queue : 0) | (index is IDomIndexRanged ? DomIndexFeatures.Range : 0)); }
private DomIndexFeatures GetFeatures(IDomIndex index) { return (index is IDomIndexQueue ? DomIndexFeatures.Queue : 0) | (index is IDomIndexRanged ? DomIndexFeatures.Range : 0); }