From ba4fbbee98fe5d328becfc66c54fd78933c482ac Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Wed, 28 Jun 2023 22:50:35 +0200 Subject: [PATCH] Tiny cleanup. RecyclableList._defaultIsNull moved to RecyclableList.IList --- Recyclable.Collections/RecyclableList.IList.cs | 2 ++ Recyclable.Collections/RecyclableList.cs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Recyclable.Collections/RecyclableList.IList.cs b/Recyclable.Collections/RecyclableList.IList.cs index f54d8b8..a7537b1 100644 --- a/Recyclable.Collections/RecyclableList.IList.cs +++ b/Recyclable.Collections/RecyclableList.IList.cs @@ -4,6 +4,8 @@ namespace Recyclable.Collections { public partial class RecyclableList : IList { + private static readonly bool _defaultIsNull = default(T) == null; + public bool IsFixedSize => false; public bool IsSynchronized => false; diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index 379f30e..d46893c 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -8,7 +8,6 @@ namespace Recyclable.Collections public sealed partial class RecyclableList : IList, IReadOnlyList, IList, IDisposable { private static readonly ArrayPool _arrayPool = ArrayPool.Create(); - private static readonly bool _defaultIsNull = default(T) == null; private static readonly bool NeedsClearing = !typeof(T).IsValueType; public static explicit operator ReadOnlySpan(RecyclableList source) => new(source._memoryBlock, 0, source.Count);