From d4af246a3a3ebc723ad707be2c42d4cb497fb0ec Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Tue, 21 Mar 2023 23:14:34 +0100 Subject: [PATCH] Added missing Array.IndexOf parameter --- Recyclable.Collections/RecyclableArrayList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recyclable.Collections/RecyclableArrayList.cs b/Recyclable.Collections/RecyclableArrayList.cs index 425f671..d63bc23 100644 --- a/Recyclable.Collections/RecyclableArrayList.cs +++ b/Recyclable.Collections/RecyclableArrayList.cs @@ -372,7 +372,7 @@ namespace Recyclable.Collections _count = 0; } - public bool Contains(T item) => Array.IndexOf(_memoryBlock, 0, _count) >= 0; + public bool Contains(T item) => Array.IndexOf(_memoryBlock, item, 0, _count) >= 0; public void CopyTo(T[] array, int arrayIndex) => Array.Copy(_memoryBlock, 0, array, arrayIndex, _count);