private void AddLastSection() { if (lastInfo == null) { return; } tree.Add(lastInfo.Pattern.ToLower(), item: lastInfo); lastInfo = null; }
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; } }