From f3efcaf09c58812bd59eb1a882a38aed3ca72e03 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Mon, 30 Jun 2014 23:26:35 -0500 Subject: [PATCH] Specify StringComparison in call to Equals --- .../Antlr4.Runtime/Tree/Pattern/ParseTreePatternMatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/CSharp/Antlr4.Runtime/Tree/Pattern/ParseTreePatternMatcher.cs b/runtime/CSharp/Antlr4.Runtime/Tree/Pattern/ParseTreePatternMatcher.cs index 2ed6eb0e1..4dc6f6e01 100644 --- a/runtime/CSharp/Antlr4.Runtime/Tree/Pattern/ParseTreePatternMatcher.cs +++ b/runtime/CSharp/Antlr4.Runtime/Tree/Pattern/ParseTreePatternMatcher.cs @@ -440,7 +440,7 @@ namespace Antlr4.Runtime.Tree.Pattern } else { - if (t1.GetText().Equals(t2.GetText())) + if (t1.GetText().Equals(t2.GetText(), StringComparison.Ordinal)) { } else