From 583c3f1c2f9d5000a182f75bdf12dc6886167a74 Mon Sep 17 00:00:00 2001 From: Jason Botwick Date: Fri, 26 Jan 2024 16:52:43 -0500 Subject: [PATCH] Fix string comparison warning --- src/Snippets/Docs/DependencyInjection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Snippets/Docs/DependencyInjection.cs b/src/Snippets/Docs/DependencyInjection.cs index d756f206968..5ae5f1c1d19 100644 --- a/src/Snippets/Docs/DependencyInjection.cs +++ b/src/Snippets/Docs/DependencyInjection.cs @@ -225,7 +225,7 @@ public sealed class PipelineNameComparer : IEqualityComparer { public bool Equals(MyPipelineKey x, MyPipelineKey y) => x.PipelineName == y.PipelineName; - public int GetHashCode(MyPipelineKey obj) => obj.PipelineName.GetHashCode(); + public int GetHashCode(MyPipelineKey obj) => obj.PipelineName.GetHashCode(StringComparison.Ordinal); } #endregion