[linker] Small string optimizations to avoid culture aware code paths
[mono.git] / mcs / tools / tuner / Mono.Tuner / PreserveSoapHttpClients.cs
index 185bac96510019c80a80bfcc9ccd0964dfad3c5d..bdb04a94db239e4935bd20139ca2fc0392e443f6 100644 (file)
@@ -62,7 +62,7 @@ namespace Mono.Tuner {
                {
                        methodName = null;
 
-                       int pos = fullName.IndexOf (prefix);
+                       int pos = fullName.IndexOf (prefix, StringComparison.Ordinal);
                        if (pos == -1)
                                return false;
 
@@ -74,7 +74,7 @@ namespace Mono.Tuner {
                {
                        methodName = null;
 
-                       int pos = fullName.LastIndexOf (suffix);
+                       int pos = fullName.LastIndexOf (suffix, StringComparison.Ordinal);
                        if (pos == -1)
                                return false;