Small cleanup

This commit is contained in:
mlemanczyk committed 2023-09-03 14:47:56 +02:00
1 parent f928e1e35e
commit 96968d5452
11 files changed
+63 -64

No files matched your search

+3 -3
View File
@@ -14,7 +14,7 @@ namespace Recyclable.Collections
get => List._longCount;
set => List._longCount = value;
}
public bool IsReadOnly => List.IsReadOnly;
public bool IsReadOnly => false;
public T this[int index] { get => this[(long)index]; set => this[(long)index] = value; }
public T this[long index] { get => List[index]; set => List[index] = value; }
@@ -46,9 +46,9 @@ namespace Recyclable.Collections
{
var toRemove = List[LongCount - 1];
LongCount--;
if ((List.Capacity * _blockSize) - LongCount == _blockSize)
if ((List._capacity * _blockSize) - LongCount == _blockSize)
{
List.RemoveBlock(List.ReservedBlockCount - 1);
List.RemoveBlock(List._reservedBlockCount - 1);
}
return toRemove;