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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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); + } +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
