12 references to ForEachExplicitCastInSourcePreference
Microsoft.CodeAnalysis.Features (4)
AbstractForEachCastDiagnosticAnalyzer.cs (3)
67Contract.ThrowIfFalse(option.Value is ForEachExplicitCastInSourcePreference.Always or ForEachExplicitCastInSourcePreference.WhenStronglyTyped); 115if (option.Value == ForEachExplicitCastInSourcePreference.WhenStronglyTyped &&
AnalyzerOptionsProvider.cs (1)
93public CodeStyleOption2<ForEachExplicitCastInSourcePreference> ForEachExplicitCastInSource => GetOption(CodeStyleOptions2.ForEachExplicitCastInSource, FallbackCodeStyleOptions.ForEachExplicitCastInSource);
Microsoft.CodeAnalysis.Workspaces (8)
CodeStyleOptions2.cs (5)
285private static readonly BidirectionalMap<string, ForEachExplicitCastInSourcePreference> s_forEachExplicitCastInSourcePreferencePreferenceMap = 288KeyValuePairUtil.Create("always", ForEachExplicitCastInSourcePreference.Always), 289KeyValuePairUtil.Create("when_strongly_typed", ForEachExplicitCastInSourcePreference.WhenStronglyTyped), 292internal static readonly Option2<CodeStyleOption2<ForEachExplicitCastInSourcePreference>> ForEachExplicitCastInSource = CreateOption( 302return new CodeStyleOption2<ForEachExplicitCastInSourcePreference>(
IdeCodeStyleOptions.cs (3)
25private static readonly CodeStyleOption2<ForEachExplicitCastInSourcePreference> s_forEachExplicitCastInSourceNonLegacyPreference = 26new(ForEachExplicitCastInSourcePreference.WhenStronglyTyped, NotificationOption2.Suggestion); 55[DataMember] public CodeStyleOption2<ForEachExplicitCastInSourcePreference> ForEachExplicitCastInSource { get; init; } = s_forEachExplicitCastInSourceNonLegacyPreference;