コード例 #1
0
ファイル: StyleSelector.cs プロジェクト: 0anion0/IBN
        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;
            }
        }
コード例 #2
0
ファイル: StyleSelector.cs プロジェクト: alex765022/IBN
        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;
            }
        }