Exemplo n.º 1
0
        public StyleSelector(string selector)
        {
            _simpleSelectors = new List<SimpleSelector>();

            foreach (string simpleSelectorString in selector.Split(' '))
            {
                SimpleSelector simpleSelector = new SimpleSelector(simpleSelectorString);
                _simpleSelectors.Add(simpleSelector);

                _idAttributesCount += simpleSelector.IdAttributesCount;
                _otherAttributesCount += simpleSelector.OtherAttributesCount;
                _elementNamesCount += simpleSelector.ElementNamesCount;
            }
        }
Exemplo n.º 2
0
        public StyleSelector(string selector)
        {
            _simpleSelectors = new List <SimpleSelector>();

            foreach (string simpleSelectorString in selector.Split(' '))
            {
                SimpleSelector simpleSelector = new SimpleSelector(simpleSelectorString);
                _simpleSelectors.Add(simpleSelector);

                _idAttributesCount    += simpleSelector.IdAttributesCount;
                _otherAttributesCount += simpleSelector.OtherAttributesCount;
                _elementNamesCount    += simpleSelector.ElementNamesCount;
            }
        }