Esempio n. 1
0
        /// <summary>
        /// Create a new DomFragment using the provided DomIndex instance.
        /// </summary>
        ///
        /// <param name="domIndex">
        /// A DomIndex provider
        /// </param>

        public DomFragment(IDomIndex domIndex)
            : base(domIndex)
        {
            
        }
Esempio n. 2
0
        /// <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();
        }
Esempio n. 3
0
        /// <summary>
        /// Create a new DomFragment using the provided DomIndex instance.
        /// </summary>
        ///
        /// <param name="domIndex">
        /// A DomIndex provider
        /// </param>

        public DomFragment(IDomIndex domIndex)
            : base(domIndex)
        {
        }
Esempio n. 4
0
 private DomIndexFeatures GetFeatures(IDomIndex index)
 {
     return((index is IDomIndexQueue ? DomIndexFeatures.Queue : 0) |
            (index is IDomIndexRanged ? DomIndexFeatures.Range : 0));
 }
Esempio n. 5
0
        private DomIndexFeatures GetFeatures(IDomIndex index)
        {
            return (index is IDomIndexQueue ? DomIndexFeatures.Queue : 0) |
                (index is IDomIndexRanged ? DomIndexFeatures.Range : 0);

        }