[Mono-bugs] [Bug 430545] New: [PATCH] Dictionary<TKey, TValue>.ContainsKey(null) should throw instead of returning false

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 29 03:25:33 EDT 2008


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


           Summary: [PATCH] Dictionary<TKey, TValue>.ContainsKey(null)
                    should throw instead of returning false
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jonathan.l.anderson at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=242160)
 --> (https://bugzilla.novell.com/attachment.cgi?id=242160)
Patch for described bug with test.

The ContainsKey method in the generic Dictionary class should throw
ArgumentNullException when a null argument is passed.  It currently returns
false.

http://msdn.microsoft.com/en-us/library/kw5aaea4.aspx

I've attached a patch for this with a new test.


-- 
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