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);