private void Initialize(int Capacity) { _FreeItemIndex = -1; var count = PrimeNumbers.GetClosestUp(Capacity); _Items = new Item[count]; _Indexes = new int[count]; for (var i = 0; i < count; i++) { _Indexes[i] = -1; } }