8 references to UseStartsWithInsteadOfIndexOfComparisonWithZero
Microsoft.CodeAnalysis.NetAnalyzers (8)
Microsoft.NetCore.Analyzers\Performance\UseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.cs (8)
17
public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
UseStartsWithInsteadOfIndexOfComparisonWithZero
.RuleId);
41
var shouldNegate = diagnostic.Properties.TryGetValue(
UseStartsWithInsteadOfIndexOfComparisonWithZero
.ShouldNegateKey, out _);
42
var compilationHasStartsWithCharOverload = diagnostic.Properties.TryGetKey(
UseStartsWithInsteadOfIndexOfComparisonWithZero
.CompilationHasStartsWithCharOverloadKey, out _);
43
_ = diagnostic.Properties.TryGetValue(
UseStartsWithInsteadOfIndexOfComparisonWithZero
.ExistingOverloadKey, out var overloadValue);
47
case
UseStartsWithInsteadOfIndexOfComparisonWithZero
.OverloadString:
48
case
UseStartsWithInsteadOfIndexOfComparisonWithZero
.OverloadString_StringComparison:
55
case
UseStartsWithInsteadOfIndexOfComparisonWithZero
.OverloadChar_StringComparison:
60
case
UseStartsWithInsteadOfIndexOfComparisonWithZero
.OverloadChar: