Class ConcurrentHashSet<T>
  
  
  
  
    Inheritance
    System.Object
    ConcurrentHashSet<T>
   
  
    Implements
    System.Collections.Generic.ISet<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
   
  
    Inherited Members
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
   
  
  Assembly: Lucene.Net.dll
  Syntax
  
    public sealed class ConcurrentHashSet<T> : ISet<T>, ICollection<T>, IEnumerable<T>, IEnumerable
   
  Type Parameters
  
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ConcurrentHashSet()
  
  
  Declaration
  
    public ConcurrentHashSet()
   
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ConcurrentHashSet(IEnumerable<T>)
  
  
  Declaration
  
    public ConcurrentHashSet(IEnumerable<T> collection)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        collection | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ConcurrentHashSet(IEnumerable<T>, IEqualityComparer<T>)
  
  
  Declaration
  
    public ConcurrentHashSet(IEnumerable<T> collection, IEqualityComparer<T> comparer)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        collection | 
         | 
      
      
        | System.Collections.Generic.IEqualityComparer<T> | 
        comparer | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ConcurrentHashSet(IEqualityComparer<T>)
  
  
  Declaration
  
    public ConcurrentHashSet(IEqualityComparer<T> comparer)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEqualityComparer<T> | 
        comparer | 
         | 
      
    
  
  Properties
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Count
  
  
  Declaration
  
    public int Count { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  IsReadOnly
  
  
  Declaration
  
    public bool IsReadOnly { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Add(T)
  
  
  Declaration
  
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T | 
        item | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Clear()
  
  
  Declaration
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Contains(T)
  
  
  Declaration
  
    public bool Contains(T item)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T | 
        item | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CopyTo(T[], Int32)
  
  
  Declaration
  
    public void CopyTo(T[] array, int arrayIndex)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T[] | 
        array | 
         | 
      
      
        | System.Int32 | 
        arrayIndex | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ExceptWith(IEnumerable<T>)
  
  
  Declaration
  
    public void ExceptWith(IEnumerable<T> other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        other | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetEnumerator()
  
  
  Declaration
  
    public IEnumerator<T> GetEnumerator()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerator<T> | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  IntersectWith(IEnumerable<T>)
  
  
  Declaration
  
    public void IntersectWith(IEnumerable<T> other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        other | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  IsProperSubsetOf(IEnumerable<T>)
  
  
  Declaration
  
    public bool IsProperSubsetOf(IEnumerable<T> other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        other | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  IsProperSupersetOf(IEnumerable<T>)
  
  
  Declaration
  
    public bool IsProperSupersetOf(IEnumerable<T> other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        other | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  IsSubsetOf(IEnumerable<T>)
  
  
  Declaration
  
    public bool IsSubsetOf(IEnumerable<T> other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        other | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  IsSupersetOf(IEnumerable<T>)
  
  
  Declaration
  
    public bool IsSupersetOf(IEnumerable<T> other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        other | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Overlaps(IEnumerable<T>)
  
  
  Declaration
  
    public bool Overlaps(IEnumerable<T> other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        other | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Remove(T)
  
  
  Declaration
  
    public bool Remove(T item)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T | 
        item | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SetEquals(IEnumerable<T>)
  
  
  Declaration
  
    public bool SetEquals(IEnumerable<T> other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        other | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SymmetricExceptWith(IEnumerable<T>)
  
  
  Declaration
  
    public void SymmetricExceptWith(IEnumerable<T> other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        other | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  UnionWith(IEnumerable<T>)
  
  
  Declaration
  
    public void UnionWith(IEnumerable<T> other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<T> | 
        other | 
         | 
      
    
  
  Explicit Interface Implementations
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ICollection<T>.Add(T)
  
  
  Declaration
  
    void ICollection<T>.Add(T item)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T | 
        item | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  IEnumerable.GetEnumerator()
  
  
  Declaration
  
    IEnumerator IEnumerable.GetEnumerator()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Collections.IEnumerator | 
         | 
      
    
  
  Implements
  
      System.Collections.Generic.ISet<T>
  
  
      System.Collections.Generic.ICollection<T>
  
  
      System.Collections.Generic.IEnumerable<T>
  
  
      System.Collections.IEnumerable
  
  Extension Methods