Merge pull request #899 from UCIS/patch-4
[mono.git] / mcs / class / System / System.Collections.Generic / Stack.cs
index 6791738d441a70636eb165154f6498a2c5a79bca..4a693549b5f6c8636fd2824a3590b6bbf22d17b8 100644 (file)
@@ -166,7 +166,7 @@ namespace System.Collections.Generic
                {
                        try {
                                if (_array != null) {
-                                       _array.CopyTo (dest, idx);
+                                       Array.Copy (_array, 0, dest, idx, _size);
                                        Array.Reverse (dest, idx, _size);
                                }
                        } catch (ArrayTypeMismatchException) {