diff --git a/Recyclable.Collections/IRandomNumberGenerator.cs b/Recyclable.Collections/IRandomNumberGenerator.cs index 9199fe4..a4df34f 100644 --- a/Recyclable.Collections/IRandomNumberGenerator.cs +++ b/Recyclable.Collections/IRandomNumberGenerator.cs @@ -1,6 +1,6 @@ namespace Recyclable.Collections { - public interface IRandomNumberGenerator + internal interface IRandomNumberGenerator { int NextInt32(int startIndex, int endIndex); } diff --git a/Recyclable.Collections/IRecyclableOwner.cs b/Recyclable.Collections/IRecyclableOwner.cs index 254c04f..b6eaca2 100644 --- a/Recyclable.Collections/IRecyclableOwner.cs +++ b/Recyclable.Collections/IRecyclableOwner.cs @@ -1,6 +1,6 @@ namespace Recyclable.Collections { - public interface IRecyclableOwner : IList + internal interface IRecyclableOwner : IList { T this[long index] { get; set; } int BlockSize { get; } diff --git a/Recyclable.Collections/ListExtensions.cs b/Recyclable.Collections/ListExtensions.cs index 350a006..866a598 100644 --- a/Recyclable.Collections/ListExtensions.cs +++ b/Recyclable.Collections/ListExtensions.cs @@ -4,7 +4,7 @@ namespace Recyclable.Collections { // The source code was taken from https://codereview.stackexchange.com/questions/205407/quicksort-without-recursion. // It was only beautified for .Net 6.0+. - public static class ListExtensions + internal static class ListExtensions { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Contains(this RecyclableList arrays, T item) => arrays.Any(x => x.Contains(item)); diff --git a/Recyclable.Collections/MathUtils.cs b/Recyclable.Collections/MathUtils.cs index aebd3d6..0fe8e7a 100644 --- a/Recyclable.Collections/MathUtils.cs +++ b/Recyclable.Collections/MathUtils.cs @@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; namespace Recyclable.Collections { - public static class MathUtils + internal static class MathUtils { // private static readonly long[] Pow2 = new long[] // { diff --git a/Recyclable.Collections/MemoryBucket.cs b/Recyclable.Collections/MemoryBucket.cs index d786d1a..720a33f 100644 --- a/Recyclable.Collections/MemoryBucket.cs +++ b/Recyclable.Collections/MemoryBucket.cs @@ -1,6 +1,6 @@ namespace Recyclable.Collections { - public class MemoryBucket + internal class MemoryBucket { public MemoryBucket(T[] memory, MemoryBucket nextBucket) { diff --git a/Recyclable.Collections/Recyclable.Collections.csproj b/Recyclable.Collections/Recyclable.Collections.csproj index 0dddff3..33db06d 100644 --- a/Recyclable.Collections/Recyclable.Collections.csproj +++ b/Recyclable.Collections/Recyclable.Collections.csproj @@ -7,7 +7,7 @@ enable true Recyclable.Collections - 0.0.3.1-alpha + 0.0.3.2-alpha Marek Lemańczyk N/A Recyclable.Collections @@ -19,7 +19,7 @@ LICENSE.md README.md git - `RecyclableList<T>` and `RecyclableLongList<T>` implemented. NuGet packages updated. + Several classes made internal to avoid conflicts with other packages. Not ready classes made internal for now. AnyCPU;x64 diff --git a/Recyclable.Collections/RecyclableLongListExtensions.cs b/Recyclable.Collections/RecyclableLongListExtensions.cs index 3ddb0ea..e4e05b0 100644 --- a/Recyclable.Collections/RecyclableLongListExtensions.cs +++ b/Recyclable.Collections/RecyclableLongListExtensions.cs @@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; namespace Recyclable.Collections { - public static class RecyclableLongListExtensions + internal static class RecyclableLongListExtensions { private const int _minPooledArraySize = RecyclableDefaults.MinPooledArrayLength; private const long ItemNotFoundIndexLong = -1L; diff --git a/Recyclable.Collections/SearchConfiguration.cs b/Recyclable.Collections/SearchConfiguration.cs index 0150a28..40cb7ca 100644 --- a/Recyclable.Collections/SearchConfiguration.cs +++ b/Recyclable.Collections/SearchConfiguration.cs @@ -1,6 +1,6 @@ namespace Recyclable.Collections { - public readonly struct SearchConfiguration + internal readonly struct SearchConfiguration { public TItem ItemToFind { get; init; } public TList List { get; init; } diff --git a/Recyclable.Collections/SystemRandomNumberGenerator.cs b/Recyclable.Collections/SystemRandomNumberGenerator.cs index baf7758..ffd8dab 100644 --- a/Recyclable.Collections/SystemRandomNumberGenerator.cs +++ b/Recyclable.Collections/SystemRandomNumberGenerator.cs @@ -1,6 +1,6 @@ namespace Recyclable.Collections { - public class SystemRandomNumberGenerator : IRandomNumberGenerator + internal class SystemRandomNumberGenerator : IRandomNumberGenerator { private readonly Random _random = new();