From 87ddc31cee55342d0ed42bf7579e6b3f7c195ce6 Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Thu, 22 Jun 2023 20:58:08 +0200 Subject: [PATCH] Tiny cleanup --- Recyclable.Collections/RecyclableList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index 6e1518f..162c3cf 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -11,7 +11,7 @@ namespace Recyclable.Collections private static readonly ArrayPool _arrayPool = ArrayPool.Create(); private static readonly bool _defaultIsNull = default(T) == null; protected static readonly bool NeedsClearing = !typeof(T).IsValueType; - + public static explicit operator ReadOnlySpan(RecyclableList source) => new(source._memoryBlock, 0, source.Count); protected T[] _memoryBlock;