RecyclableArrayList.CopyTo fixed to copy only the no. of items added to the list.

This commit is contained in:
Marek Lemańczyk committed 2023-03-11 15:26:39 +01:00
1 parent 9c640f4251
commit f76276c7a4
1 file changed
+1 -1
@@ -302,7 +302,7 @@ namespace Recyclable.Collections
public bool Contains(T item) => _memoryBlock.Contains(item);
public void CopyTo(T[] array, int arrayIndex) => _memoryBlock.CopyTo(array, arrayIndex);
public void CopyTo(T[] array, int arrayIndex) => Array.Copy(_memoryBlock, 0, array, arrayIndex, _count);
protected static IEnumerable<T> Enumerate(RecyclableArrayList<T> list)
{