LayoutFarm.WebDom.CssActiveSheet.MergeContent C# (CSharp) Méthode

MergeContent() static private méthode

static private MergeContent ( CssRuleSetGroup>.Dictionary a, CssRuleSetGroup>.Dictionary b ) : void
a CssRuleSetGroup>.Dictionary
b CssRuleSetGroup>.Dictionary
Résultat void
        static void MergeContent(Dictionary<string, CssRuleSetGroup> a, Dictionary<string, CssRuleSetGroup> b)
        {
            foreach (CssRuleSetGroup b_ruleSet in b.Values)
            {
                CssRuleSetGroup a_ruleset;
                if (!a.TryGetValue(b_ruleSet.Name, out a_ruleset))
                {
                    //not found
                    a.Add(b_ruleSet.Name, b_ruleSet);
                }
                else
                {
                    //if found then merge
                    a_ruleset.Merge(b_ruleSet);
                }
            }
        }
#if DEBUG