Exemplo n.º 1
0
 internal RoslynPreferences()
 {
     foreach (var language in RoslynService.AllLanguages)
     {
         languageConfigs.Add(language, new PerLanguagePreferences(language, this));
     }
     CSharp = languageConfigs [LanguageNames.CSharp];
 }
Exemplo n.º 2
0
 public PerLanguagePreferences For(string languageName)
 {
     lock (languageConfigs) {
         if (!languageConfigs.TryGetValue(languageName, out var value))
         {
             languageConfigs [languageName] = value = new PerLanguagePreferences(languageName, this);
         }
         return(value);
     }
 }