From 6362c343db15623e626a45fa44459e7c5afe14ab Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sun, 25 Jun 2023 21:01:41 +0200 Subject: [PATCH] Tiny cleanup --- Recyclable.Collections/RecyclableList.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index 3bc76d2..e76f857 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -520,7 +520,7 @@ namespace Recyclable.Collections } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public Enumerator GetEnumerator() => new Enumerator(this); + public Enumerator GetEnumerator() => new(this); [MethodImpl(MethodImplOptions.AggressiveInlining)] IEnumerator IEnumerable.GetEnumerator() => new Enumerator(this); @@ -533,7 +533,6 @@ namespace Recyclable.Collections if (_capacity > 0) { Clear(); - _capacity = 0; if (_count is >= RecyclableDefaults.MinPooledArrayLength) { _arrayPool.Return(_memoryBlock, NeedsClearing);