Skip to content

Commit

Permalink
Add IReadOnlySet for .NET 5+
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Feb 14, 2025
1 parent 66a2861 commit 59c67f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Lucene.Net/Support/ConcurrentHashSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
using System.Runtime.CompilerServices;
using System.Threading;
using JCG = J2N.Collections.Generic;
// ReSharper disable RedundantExtendsListEntry
#nullable enable

namespace Lucene.Net.Support
Expand All @@ -45,8 +46,10 @@ namespace Lucene.Net.Support
/// concurrently from multiple threads.
/// </remarks>
[DebuggerDisplay("Count = {Count}")]
// ReSharper disable once RedundantExtendsListEntry
internal class ConcurrentHashSet<T> : ISet<T>, IReadOnlyCollection<T>, ICollection<T>
#if FEATURE_READONLYSET
, IReadOnlySet<T>
#endif
{
private const int DefaultCapacity = 31;
private const int MaxLockNumber = 1024;
Expand Down

0 comments on commit 59c67f0

Please sign in to comment.