8 references to UseStartsWithInsteadOfIndexOfComparisonWithZero
Microsoft.CodeAnalysis.NetAnalyzers (8)
Microsoft.NetCore.Analyzers\Performance\UseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.cs (8)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(UseStartsWithInsteadOfIndexOfComparisonWithZero.RuleId); 34bool shouldNegate = diagnostic.Properties.ContainsKey(UseStartsWithInsteadOfIndexOfComparisonWithZero.ShouldNegateKey); 35bool compilationHasStartsWithCharOverload = diagnostic.Properties.ContainsKey(UseStartsWithInsteadOfIndexOfComparisonWithZero.CompilationHasStartsWithCharOverloadKey); 36_ = diagnostic.Properties.TryGetValue(UseStartsWithInsteadOfIndexOfComparisonWithZero.ExistingOverloadKey, out string? overloadValue); 54case UseStartsWithInsteadOfIndexOfComparisonWithZero.OverloadString: 55case UseStartsWithInsteadOfIndexOfComparisonWithZero.OverloadString_StringComparison: 62case UseStartsWithInsteadOfIndexOfComparisonWithZero.OverloadChar_StringComparison: 67case UseStartsWithInsteadOfIndexOfComparisonWithZero.OverloadChar: