Exemplo 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)
        {
            
        }
Exemplo 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();
        }
Exemplo 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)
        {
        }
Exemplo n.º 4
0
 private DomIndexFeatures GetFeatures(IDomIndex index)
 {
     return((index is IDomIndexQueue ? DomIndexFeatures.Queue : 0) |
            (index is IDomIndexRanged ? DomIndexFeatures.Range : 0));
 }
Exemplo n.º 5
0
        private DomIndexFeatures GetFeatures(IDomIndex index)
        {
            return (index is IDomIndexQueue ? DomIndexFeatures.Queue : 0) |
                (index is IDomIndexRanged ? DomIndexFeatures.Range : 0);

        }