[Mono-bugs] [Bug 347428] IntXX.TryParse/Parse will fail on string with NULL (\0)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 10 22:58:39 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=347428

User atsushi at ximian.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=347428#c1


Atsushi Enomoto <atsushi at ximian.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |atsushi at ximian.com
             Status|NEW                                             |RESOLVED
         Resolution|                                                |INVALID




--- Comment #1 from Atsushi Enomoto <atsushi at ximian.com>  2007-12-10 20:58:38 MST ---
You are missing test case, where the description is not obvious for everyone
(especially when "\0" is mentioned as null, which is not really).

Though I'm closing this bug because the report is likely based on mere
assumption, not the actual run. Here is a test case which shows that mono works
fine:

--------
using System;

public class Test
{
        public static void Main ()
        {
                int i;
                Console.WriteLine (int.TryParse (null, out i));
                Console.WriteLine (int.TryParse ("\0", out i));
        }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list