[Mono-bugs] [Bug 80348][Wis] New - String comparisons not working
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Dec 22 18:48:03 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by alan.mcgovern at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80348
--- shadow/80348 2006-12-22 18:48:03.000000000 -0500
+++ shadow/80348.tmp.17059 2006-12-22 18:48:03.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 80348
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: alan.mcgovern at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: String comparisons not working
+
+Both indexes should print out as "2" yet when using OrdinalIgnoreCase it
+can't find the index of 'long'.
+
+To test just compile the code below and run it.
+
+using System;
+
+public class Test
+{
+ public static void Main(string[] args)
+ {
+ string s = "myLongstring";
+ int index= s.IndexOf("long", StringComparison.OrdinalIgnoreCase);
+ Console.WriteLine("Index is: " + index);
+
+ index= s.IndexOf("long", StringComparison.InvariantCultureIgnoreCase);
+ Console.WriteLine("Index is: " + index);
+ }
+}
More information about the mono-bugs
mailing list