From 24a6324db114086cd21dd000c4ed67920d68c5c8 Mon Sep 17 00:00:00 2001 From: Safia Abdalla Date: Wed, 29 May 2024 16:45:45 -0700 Subject: [PATCH] Use Ordinal comparison for extension method names --- .../src/CodeFixes/Dependencies/ThisAndExtensionMethod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Framework/AspNetCoreAnalyzers/src/CodeFixes/Dependencies/ThisAndExtensionMethod.cs b/src/Framework/AspNetCoreAnalyzers/src/CodeFixes/Dependencies/ThisAndExtensionMethod.cs index 9604088ea3a7..977539d55b07 100644 --- a/src/Framework/AspNetCoreAnalyzers/src/CodeFixes/Dependencies/ThisAndExtensionMethod.cs +++ b/src/Framework/AspNetCoreAnalyzers/src/CodeFixes/Dependencies/ThisAndExtensionMethod.cs @@ -16,7 +16,7 @@ public override bool Equals(object? obj) if (obj is ThisAndExtensionMethod other) { return SymbolEqualityComparer.Default.Equals(ThisType, other.ThisType) && - ExtensionMethod.Equals(other.ExtensionMethod, StringComparison.OrdinalIgnoreCase); + ExtensionMethod.Equals(other.ExtensionMethod, StringComparison.Ordinal); } return false; }