11 references to ForEachExplicitCastInSourcePreference
Microsoft.CodeAnalysis.CodeStyle (11)
src\Analyzers\Core\Analyzers\AnalyzerOptionsProvider.cs (1)
66
public CodeStyleOption2<
ForEachExplicitCastInSourcePreference
> ForEachExplicitCastInSource => GetOption(CodeStyleOptions2.ForEachExplicitCastInSource);
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (3)
59
Contract.ThrowIfFalse(option.Value is
ForEachExplicitCastInSourcePreference
.Always or
ForEachExplicitCastInSourcePreference
.WhenStronglyTyped);
131
if (option.Value ==
ForEachExplicitCastInSourcePreference
.WhenStronglyTyped &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (7)
296
private static readonly BidirectionalMap<string,
ForEachExplicitCastInSourcePreference
> s_forEachExplicitCastInSourcePreferencePreferenceMap =
299
KeyValuePairUtil.Create("always",
ForEachExplicitCastInSourcePreference
.Always),
300
KeyValuePairUtil.Create("when_strongly_typed",
ForEachExplicitCastInSourcePreference
.WhenStronglyTyped),
303
internal static readonly Option2<CodeStyleOption2<
ForEachExplicitCastInSourcePreference
>> ForEachExplicitCastInSource = CreateOption(
306
defaultValue: new CodeStyleOption2<
ForEachExplicitCastInSourcePreference
>(
ForEachExplicitCastInSourcePreference
.WhenStronglyTyped, NotificationOption2.Suggestion),
313
return new CodeStyleOption2<
ForEachExplicitCastInSourcePreference
>(