Class ReadOnlyHashSet<T>
Provides a read-only wrapper around a HashSet<T>.
Namespace: Singulink.Collections
Assembly: Singulink.Collections.dll
Syntax
public class ReadOnlyHashSet<T> : ISet<T>, ICollection<T>, IReadOnlySet<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerableType Parameters
| Name | Description | 
|---|---|
| T | 
Constructors
| Name | Description | 
|---|---|
| ReadOnlyHashSet(HashSet<T>) | Initializes a new instance of the ReadOnlyHashSet<T> class. | 
Properties
| Name | Description | 
|---|---|
| Count | Gets the number of items contained in the set. | 
| Empty | Gets an empty read-only hash set. | 
Methods
| Name | Description | 
|---|---|
| Contains(T) | Determines whether the set contains the specified item. | 
| CopyTo(T[]) | Copies the items of the set to an array. | 
| CopyTo(T[], int) | Copies the items of the set to an array starting at the specified index. | 
| GetEnumerator() | Returns an enumerator that iterates through the set. | 
| IsProperSubsetOf(IEnumerable<T>) | Determines whether the set is a proper subset of the specified collection. | 
| IsProperSupersetOf(IEnumerable<T>) | Determines whether the set is a proper superset of the specified collection. | 
| IsSubsetOf(IEnumerable<T>) | Determines whether the set is a subset of the specified collection. | 
| IsSupersetOf(IEnumerable<T>) | Determines whether the set is a superset of the specified collection. | 
| Overlaps(IEnumerable<T>) | Determines whether this set and the specified set share any common items. | 
| SetEquals(IEnumerable<T>) | Determines whether this set and the specified collection contain the same items. | 
| TryGetValue(T, out T) | Searches the set for the given value and returns the equal value, if any. | 
Explicit Interface Implementations
| Name | Description | 
|---|---|
| ICollection<T>.Add(T) | Not supported. | 
| ICollection<T>.Clear() | Not supported. | 
| ICollection<T>.IsReadOnly | Gets a value indicating whether this set is read-only. Always returns true. | 
| ICollection<T>.Remove(T) | Not supported. | 
| IEnumerable<T>.GetEnumerator() | Returns an enumerator that iterates through the set. | 
| ISet<T>.Add(T) | Not supported. | 
| ISet<T>.ExceptWith(IEnumerable<T>) | Not supported. | 
| ISet<T>.IntersectWith(IEnumerable<T>) | Not supported. | 
| ISet<T>.SymmetricExceptWith(IEnumerable<T>) | Not supported. | 
| ISet<T>.UnionWith(IEnumerable<T>) | Not supported. | 
| IEnumerable.GetEnumerator() | Returns an enumerator that iterates through the set. | 
