Tiny cleanup. RecyclableList._defaultIsNull moved to RecyclableList.IList
This commit is contained in:
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
|
public partial class RecyclableList<T> : IList
|
||||||
{
|
{
|
||||||
|
private static readonly bool _defaultIsNull = default(T) == null;
|
||||||
|
|
||||||
public bool IsFixedSize => false;
|
public bool IsFixedSize => false;
|
||||||
public bool IsSynchronized => false;
|
public bool IsSynchronized => false;
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ namespace Recyclable.Collections
|
|||||||
public sealed partial class RecyclableList<T> : IList<T>, IReadOnlyList<T>, IList, IDisposable
|
public sealed partial class RecyclableList<T> : IList<T>, IReadOnlyList<T>, IList, IDisposable
|
||||||
{
|
{
|
||||||
private static readonly ArrayPool<T> _arrayPool = ArrayPool<T>.Create();
|
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;
|
private static readonly bool NeedsClearing = !typeof(T).IsValueType;
|
||||||
|
|
||||||
public static explicit operator ReadOnlySpan<T>(RecyclableList<T> source) => new(source._memoryBlock, 0, source.Count);
|
public static explicit operator ReadOnlySpan<T>(RecyclableList<T> source) => new(source._memoryBlock, 0, source.Count);
|
||||||
|
|||||||
Reference in new issue
Block a user