10 references to PreferReadonly
Microsoft.CodeAnalysis.Features (2)
AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
27CodeStyleOptions2.PreferReadonly,
AnalyzerOptionsProvider.cs (1)
88public CodeStyleOption2<bool> PreferReadonly => GetOption(CodeStyleOptions2.PreferReadonly, FallbackCodeStyleOptions.PreferReadonly);
Microsoft.CodeAnalysis.Workspaces (1)
IdeCodeStyleOptions.cs (1)
84PreferReadonly = options.GetOption(CodeStyleOptions2.PreferReadonly, language, fallbackOptions.PreferReadonly);
Microsoft.VisualStudio.LanguageServices (1)
EditorConfigSettings\DataProvider\CodeStyle\CommonCodeStyleSettingsProvider.cs (1)
92yield return CodeStyleSetting.Create(CodeStyleOptions2.PreferReadonly, ServicesVSResources.Prefer_readonly_fields, options, updater);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
Options\AutomationObject\AutomationObject.Style.cs (2)
212get { return GetXmlOption(CodeStyleOptions2.PreferReadonly); } 213set { SetXmlOption(CodeStyleOptions2.PreferReadonly, value); }
Options\Formatting\StyleViewModel.cs (1)
2292CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CodeStyleOptions2.PreferReadonly, ServicesVSResources.Prefer_readonly_fields, s_preferReadonly, s_preferReadonly, this, optionStore, modifierGroupTitle));
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
Options\AutomationObject\AutomationObject.Style.vb (2)
246Return GetXmlOption(CodeStyleOptions2.PreferReadonly) 249SetXmlOption(CodeStyleOptions2.PreferReadonly, value)
Options\StyleViewModel.vb (1)
856Me.CodeStyleItems.Add(New BooleanCodeStyleOptionViewModel(CodeStyleOptions2.PreferReadonly, ServicesVSResources.Prefer_readonly_fields, s_preferReadonly, s_preferReadonly, Me, optionStore, fieldPreferencesGroupTitle))