Tiny cleanup. RecyclableList._defaultIsNull moved to RecyclableList.IList

This commit is contained in:
mlemanczyk committed 2023-06-28 22:50:35 +02:00
1 parent 8a10c52ef9
commit ba4fbbee98
2 files changed
+2 -1

No files matched your search

@@ -4,6 +4,8 @@ namespace Recyclable.Collections
{
public partial class RecyclableList<T> : IList
{
private static readonly bool _defaultIsNull = default(T) == null;
public bool IsFixedSize => false;
public bool IsSynchronized => false;
-1
View File
@@ -8,7 +8,6 @@ namespace Recyclable.Collections
public sealed partial class RecyclableList<T> : IList<T>, IReadOnlyList<T>, IList, IDisposable
{
private static readonly ArrayPool<T> _arrayPool = ArrayPool<T>.Create();
private static readonly bool _defaultIsNull = default(T) == null;
private static readonly bool NeedsClearing = !typeof(T).IsValueType;
public static explicit operator ReadOnlySpan<T>(RecyclableList<T> source) => new(source._memoryBlock, 0, source.Count);