diff --git a/Recyclable.Collections/RecyclableQueue.cs b/Recyclable.Collections/RecyclableQueue.cs index ed00fe4..070ebcd 100644 --- a/Recyclable.Collections/RecyclableQueue.cs +++ b/Recyclable.Collections/RecyclableQueue.cs @@ -4,7 +4,7 @@ using System.Runtime.CompilerServices; namespace Recyclable.Collections { - public class RecyclableQueue : IRecyclableOwner, IList, IDisposable + internal class RecyclableQueue : IRecyclableOwner, IList, IDisposable { private static readonly ArrayPool _arrayPool = ArrayPool.Create(); private static readonly IEqualityComparer _equalityComparer = EqualityComparer.Default; diff --git a/Recyclable.Collections/RecyclableSortedList.cs b/Recyclable.Collections/RecyclableSortedList.cs index b947e9d..d1d9ede 100644 --- a/Recyclable.Collections/RecyclableSortedList.cs +++ b/Recyclable.Collections/RecyclableSortedList.cs @@ -1,6 +1,6 @@ namespace Recyclable.Collections { - public class RecyclableSortedList : RecyclableLongList<(TKey Key, TValue Value)> + internal class RecyclableSortedList : RecyclableLongList<(TKey Key, TValue Value)> where TKey : notnull { private static readonly IComparer<(TKey, TValue)> _comparer = new FrequencyTupleComparer(); diff --git a/Recyclable.Collections/RecyclableStack.cs b/Recyclable.Collections/RecyclableStack.cs index 50d7140..b885708 100644 --- a/Recyclable.Collections/RecyclableStack.cs +++ b/Recyclable.Collections/RecyclableStack.cs @@ -2,7 +2,7 @@ namespace Recyclable.Collections { - public class RecyclableStack : IList, IDisposable + internal class RecyclableStack : IList, IDisposable { private bool _disposedValue; private readonly int _blockSize;