Author: zoltan
Date: 2005-04-20 15:15:47 -0400 (Wed, 20 Apr 2005)
New Revision: 43353
Modified:
trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog
trunk/mcs/class/corlib/System.Collections.Generic/List.cs
Log:
2005-04-20 Zoltan Varga <[EMAIL PROTECTED]>
* List.cs: Fix ToArray () method. Fixes #74675.
Modified: trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog 2005-04-20
18:53:40 UTC (rev 43352)
+++ trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog 2005-04-20
19:15:47 UTC (rev 43353)
@@ -1,3 +1,7 @@
+2005-04-20 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * List.cs: Fix ToArray () method. Fixes #74675.
+
2005-04-04 Raja R Harinath <[EMAIL PROTECTED]>
* Dictionary.cs: Update to draft of Feb 27. Add some argument checks.
Modified: trunk/mcs/class/corlib/System.Collections.Generic/List.cs
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/List.cs 2005-04-20
18:53:40 UTC (rev 43352)
+++ trunk/mcs/class/corlib/System.Collections.Generic/List.cs 2005-04-20
19:15:47 UTC (rev 43353)
@@ -376,7 +376,7 @@
{
T [] t = new T [size];
if (data != null)
- data.CopyTo (t, 0);
+ Array.Copy (data, t, size);
return t;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches