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

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.