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