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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 22 02:20:58 EST 2011



David Schmitt <david at dasz.at> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |NEW
       InfoProvider|david at dasz.at               |

--- Comment #2 from David Schmitt <david at dasz.at> 2011-02-22 07:20:57 UTC ---
(In reply to comment #1)
> Please prove a test case as the following code fails to compile:
> var x = new ObservableCollection<int> ();
> x.CopyTo (new int[10, 1], 0);

ICollection.CopyTo takes an System.Array, not an []-array. Thus the following
code shuold demonstrate the problem:

var x = new ObservableCollection<int> ();
((System.Collection.ICollection)x).CopyTo (new int[10, 1], 0);

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