Class ImmutableEquatableSet<T>
Defines an immutable set that defines structural equality semantics.
public sealed class ImmutableEquatableSet<T> : IEquatable<ImmutableEquatableSet<T>>, ISet<T>, ICollection<T>, IReadOnlyCollection<T>, IEnumerable<T>, ICollection, IEnumerable where T : IEquatable<T>
Type Parameters
TThe element type of the set.
- Inheritance
-
ImmutableEquatableSet<T>
- Implements
-
ISet<T>ICollection<T>IEnumerable<T>
- Inherited Members
- Extension Methods
Properties
Count
Gets an enumerator that iterates through the set.
public int Count { get; }
Property Value
Empty
An empty ImmutableEquatableSet<T> instance.
public static ImmutableEquatableSet<T> Empty { get; }
Property Value
Methods
Contains(T)
Checks if the set contains the specified item.
public bool Contains(T item)
Parameters
itemT
Returns
Equals(ImmutableEquatableSet<T>)
public bool Equals(ImmutableEquatableSet<T> other)
Parameters
otherImmutableEquatableSet<T>
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetEnumerator()
Gets an enumerator that iterates through the set.
public HashSet<T>.Enumerator GetEnumerator()
Returns
GetHashCode()
public override int GetHashCode()