Version 2.1.0.0

ImmutableHashSet<T> class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public class ImmutableHashSet<T> : IEnumerable<T>, IEnumerable
Immutable hashset wraps another hashset, and allows for reading the inner hashset, without the ability to change it.
Inheritance
  • System.Object
  • ImmutableHashSet<T>

Type Parameters

T

Constructors

ImmutableHashSet(HashSet<T>)
Creates an immutable hashset around another hashset.
public ImmutableHashSet(HashSet<T> hashSet)
Parameters
System.Collections.Generic.HashSet<T> hashSet

Methods

Contains(T)
Returns true if the item is contained in the list.
public bool Contains(T item)
Parameters
T item

The item's value.

Returns
System.Boolean

GetEnumerator()
Gets the enumerator.
public IEnumerator<T> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<T>

Extension Methods