Tiny performance improvement until the stack is redesigned.

This commit is contained in:
mlemanczyk committed 2023-06-25 19:50:39 +02:00
1 parent fe544ed786
commit 86f5387b55
1 file changed
+3 -4
+3 -4
View File
@@ -8,13 +8,12 @@ namespace Recyclable.Collections
private readonly int _blockSize;
protected RecyclableLongList<T> List { get; }
public int Count => List.Count;
public int Count => checked((int)List._longCount);
public long LongCount
{
get => List.LongCount;
set => List.LongCount = value;
get => List._longCount;
set => List._longCount = value;
}
public bool IsReadOnly => List.IsReadOnly;
public T this[int index] { get => this[(long)index]; set => this[(long)index] = value; }