From 10717c4bd4a096624b3b78b5eb2b08b9e21ff4b5 Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sat, 28 Jan 2023 14:19:31 +0100 Subject: [PATCH] Source code cleanup --- Recyclable.Collections/RecyclableList.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index 04f1125..5e8cb31 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -206,12 +206,12 @@ namespace Recyclable.Collections return newCapacity; } - public RecyclableList(int blockSize = RecyclableDefaults.BlockSize, long? initialCapacity = default) + public RecyclableList(int blockSize = RecyclableDefaults.BlockSize, long? expectedItemsCount = default) { - switch (initialCapacity > 0) + switch (expectedItemsCount > 0) { case true: - _memoryBlocks = SetNewLength(_memoryBlocks, blockSize, initialCapacity.Value); + _memoryBlocks = SetNewLength(_memoryBlocks, blockSize, expectedItemsCount.Value); if (_memoryBlocks.Length > 0) { blockSize = _memoryBlocks[0].Length;