RecyclableList.Count & .LongCount made read-only
This commit is contained in:
1 parent
e5c20a1aaa
commit
224800d89a
1 file changed
+2
-21
@@ -44,32 +44,13 @@ namespace Recyclable.Collections
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Count
|
public int Count => checked((int)_longCount);
|
||||||
{
|
|
||||||
get => checked((int)_longCount);
|
|
||||||
|
|
||||||
set
|
|
||||||
{
|
|
||||||
_longCount = value;
|
|
||||||
_version++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly => false;
|
public bool IsReadOnly => false;
|
||||||
internal int _lastBlockWithData = RecyclableDefaults.ItemNotFoundIndex;
|
internal int _lastBlockWithData = RecyclableDefaults.ItemNotFoundIndex;
|
||||||
public int LastBlockWithData => _lastBlockWithData;
|
public int LastBlockWithData => _lastBlockWithData;
|
||||||
|
|
||||||
internal long _longCount;
|
internal long _longCount;
|
||||||
|
public long LongCount => _longCount;
|
||||||
public long LongCount
|
|
||||||
{
|
|
||||||
get => _longCount;
|
|
||||||
set
|
|
||||||
{
|
|
||||||
_longCount = value;
|
|
||||||
_version++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int ReservedBlockCount => _reservedBlockCount;
|
public int ReservedBlockCount => _reservedBlockCount;
|
||||||
public int BlockSize => _blockSize;
|
public int BlockSize => _blockSize;
|
||||||
|
|||||||
Reference in new issue
Block a user