Beispiel #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;
            }
        }
Beispiel #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;
            }
        }