Пример #1
0
        protected void Create(string selector, CQ context)
        {
            // when creating a new CsQuery from another, leave Dom blank - it will be populated automatically with the
            // contents of the selector.
            CsQueryParent = context;

            if (!String.IsNullOrEmpty(selector))
            {
                Selectors = new SelectorChain(selector);
                AddSelectionRange(Selectors.Select(Document, context.Children()));
            }
        }
        protected void Create(string selector, CQ context)
        {
            // when creating a new CsQuery from another, leave Dom blank - it will be populated automatically with the
            // contents of the selector.
            CsQueryParent = context;

            if (!String.IsNullOrEmpty(selector))
            {
                Selectors = new SelectorChain(selector);
                AddSelectionRange(Selectors.Select(Document, context.Children()));
            }
        }