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=77722 --- shadow/77722 2006-03-07 10:46:51.000000000 -0500 +++ shadow/77722.tmp.13275 2006-03-07 10:46:51.000000000 -0500 @@ -0,0 +1,62 @@ +Bug#: 77722 +Product: Mono: Class Libraries +Version: 1.1 +OS: All +OS Details: Fedora Core 4 +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: CORLIB +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Double.TryParse has different results from MS's implementation + +Description of Problem: +When passed an empty string, MS's System.Double.TryParse() returns false, +whereas Mono's returns true. + + +Steps to reproduce the problem: +Compile and run the following code: +/* begin C# */ +using System; +using System.Globalization; + +namespace FunConsoleApp +{ + class Class1 + { + [STAThread] + static void Main(string[] args) + { + System.Threading.Thread.CurrentThread.CurrentCulture = new +CultureInfo("en-US"); + double dNumber = 0.0; + bool bCanParse = double.TryParse("", +System.Globalization.NumberStyles.Number, +System.Globalization.CultureInfo.CurrentCulture.NumberFormat, out dNumber); + Console.WriteLine(bCanParse.ToString()); + } + } +} +/* end C# */ + + +Actual Results: +True + + +Expected Results: +False + + +How often does this happen? +Every time. + +Additional Information: +I'm using revision 57653 of mcs from svn. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
