6 references to PreferReadOnlyStruct
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
81
public CodeStyleOption2<bool> PreferReadOnlyStruct => GetOption(CSharpCodeStyleOptions.
PreferReadOnlyStruct
);
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
20
CSharpCodeStyleOptions.
PreferReadOnlyStruct
,
Microsoft.VisualStudio.LanguageServices.CSharp (4)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
89
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.
PreferReadOnlyStruct
, ServicesVSResources.Prefer_read_only_struct, options, updater);
Options\AutomationObject\AutomationObject.Style.cs (2)
338
get { return GetXmlOption(CSharpCodeStyleOptions.
PreferReadOnlyStruct
); }
339
set { SetXmlOption(CSharpCodeStyleOptions.
PreferReadOnlyStruct
, value); }
Options\Formatting\StyleViewModel.cs (1)
2325
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.
PreferReadOnlyStruct
, ServicesVSResources.Prefer_read_only_struct, s_preferReadOnlyStruct, s_preferReadOnlyStruct, this, optionStore, modifierGroupTitle));