internal OptionsCollection MergeStyles(OptionsCollection first, OptionsCollection second) { var firstPreferences = (NamingStylePreferences)first.First().Value; var secondPreferences = (NamingStylePreferences)second.First().Value; return(new OptionsCollection(_languageName) { { NamingStyleOptions.NamingPreferences, new NamingStylePreferences( firstPreferences.SymbolSpecifications.AddRange(secondPreferences.SymbolSpecifications), firstPreferences.NamingStyles.AddRange(secondPreferences.NamingStyles), firstPreferences.NamingRules.AddRange(secondPreferences.NamingRules)) } }); }