From 6ebc6ac6fb6222fdc45f21f2e805937651033dfc Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sun, 25 Jun 2023 20:29:49 +0200 Subject: [PATCH] Cleanup - RecyclableList.Helpers.Contains(), .CopyTo() & .Enumerate() methods marked as obsolete. --- Recyclable.Collections/RecyclableList.Helpers.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Recyclable.Collections/RecyclableList.Helpers.cs b/Recyclable.Collections/RecyclableList.Helpers.cs index 78302d4..a7aadd5 100644 --- a/Recyclable.Collections/RecyclableList.Helpers.cs +++ b/Recyclable.Collections/RecyclableList.Helpers.cs @@ -6,9 +6,11 @@ namespace Recyclable.Collections { internal static class Helpers { + [Obsolete("This method MAY be removed in the near future.")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Contains(RecyclableList arrays, T item) => arrays.Any(x => x.Contains(item)); + [Obsolete("This method MAY be removed in the near future.")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void CopyTo(RecyclableList arrays, long startingIndex, int blockSize, int lastBlockSize, T[] destinationArray, int destinationArrayIndex) { @@ -48,6 +50,7 @@ namespace Recyclable.Collections } } + [Obsolete("This method WILL be removed in the near future. Please use the existing enumerators instead of it.")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static IEnumerable Enumerate(RecyclableList arrays, int chunkSize, long totalCount) {