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)
58
Contract.ThrowIfFalse(option.Value is
ForEachExplicitCastInSourcePreference
.Always or
ForEachExplicitCastInSourcePreference
.WhenStronglyTyped);
130
if (option.Value ==
ForEachExplicitCastInSourcePreference
.WhenStronglyTyped &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (7)
297
private static readonly BidirectionalMap<string,
ForEachExplicitCastInSourcePreference
> s_forEachExplicitCastInSourcePreferencePreferenceMap =
300
KeyValuePair.Create("always",
ForEachExplicitCastInSourcePreference
.Always),
301
KeyValuePair.Create("when_strongly_typed",
ForEachExplicitCastInSourcePreference
.WhenStronglyTyped),
304
internal static readonly Option2<CodeStyleOption2<
ForEachExplicitCastInSourcePreference
>> ForEachExplicitCastInSource = CreateOption(
307
defaultValue: new CodeStyleOption2<
ForEachExplicitCastInSourcePreference
>(
ForEachExplicitCastInSourcePreference
.WhenStronglyTyped, NotificationOption2.Suggestion),
314
return new CodeStyleOption2<
ForEachExplicitCastInSourcePreference
>(