コード例 #1
0
        private void AddLastSection()
        {
            if (lastInfo == null)
            {
                return;
            }

            tree.Add(lastInfo.Pattern.ToLower(), item: lastInfo);

            lastInfo = null;
        }
コード例 #2
0
        public void StartSection(string section, long lineNumber, out bool cancelParsing)
        {
            cancelParsing = false;
            AddLastSection();

            if (section == "GJK_Browscap_Version")
            {
                lastInfo = null;
            }
            else
            {
                lastInfo         = new BrowserCapabilityInfo();
                lastInfo.Pattern = section;
                lastInfo.Rank    = lineNumber;
            }
        }