[Mono-bugs] [Bug 672907] New: ObservableCollection<T>.CopyTo(new T[10, 1], 0) throws RankException, ArgumentException expected

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 17 03:03:50 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=672907#c0


           Summary: ObservableCollection<T>.CopyTo(new T[10, 1], 0) throws
                    RankException, ArgumentException expected
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: david at dasz.at
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13

The mono corlib implementation does not match the MSDN documentation/MS
implementation

Reproducible: Always

Steps to Reproduce:
1. Create a new  ObservableCollection<T>
2. Call .CopyTo(new T[10, 1], 0) on this instance

Actual Results:  
A RankException is thrown

Expected Results:  
The MSDN docs for both ObservableCollection<T>.CopyTo and ICollection.CopyTo
specify an ArgumentException when a unexpected array is passed.

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