[Mono-bugs] [Bug 48431][Cos] New - incorrect parameter modifier for Double.TryParse
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 12 Sep 2003 08:59:20 -0400 (EDT)
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 michael.luther@dnamerican.com.
http://bugzilla.ximian.com/show_bug.cgi?id=48431
--- shadow/48431 2003-09-12 08:59:20.000000000 -0400
+++ shadow/48431.tmp.351 2003-09-12 08:59:20.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 48431
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Cosmetic
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: michael.luther@dnamerican.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: incorrect parameter modifier for Double.TryParse
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. Try to compile a program with:
+double result = 0.0;
+bool test = Double.TryParse("123.456",
+System.Globalization.NumberStyles.Float,
+System.Globalization.NumberFormatInfo.InvariantInfo, out result);
+2. It won't compile. Mono wants "out result" to be "ref result".
+3.
+
+Actual Results:
+Mono won't compile the program since it requests the parameter modifier be
+"ref" instead of "out"
+
+Expected Results:
+MSDN
+(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdoubleclasstryparsetopic.asp)
+lists the parameter modifier as being "out" not "ref"
+
+How often does this happen?
+every time.
+
+Additional Information: