ImmutableSortedSet<T>
public sealed class ImmutableSortedSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, ISortKeyCollection<T>, IReadOnlySet<T>, IReadOnlyList<T>, IList<T>, ICollection<T>, ISet<T>, IList, ICollection, IStrongEnumerable<T, Enumerator<T>>
Represents an immutable sorted set implementation.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
public sealed class Builder<T> : ISortKeyCollection<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, ISet<T>, ICollection<T>, ICollection
Represents a sorted set that enables changes with little or no memory allocations, and efficiently manipulates or builds immutable sorted sets.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
public struct Enumerator<T> : IEnumerator<T>, IEnumerator, IDisposable, ISecurePooledObjectUser, IStrongEnumerator<T>
Enumerates the contents of a binary tree.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets an empty immutable sorted set.
Gets the number of elements in the immutable sorted set.
Gets a value that indicates whether this immutable sorted set is empty.
Gets the element of the immutable sorted set at the given index.
Gets the comparer used to sort keys in the immutable sorted set.
Gets the maximum value in the immutable sorted set, as defined by the comparer.
Gets the minimum value in the immutable sorted set, as defined by the comparer.
Adds the specified value to this immutable sorted set.
Removes all elements from the immutable sorted set.
Determines whether this immutable sorted set contains the specified value.
Removes a specified set of items from this immutable sorted set.
Returns an enumerator that iterates through the immutable sorted set.
Gets the position within this immutable sorted set that the specified value appears in.
Creates an immutable sorted set that contains elements that exist both in this set and in the specified set.
Determines whether the current immutable sorted set is a proper (strict) subset of the specified collection.
Determines whether the current immutable sorted set is a proper superset of a specified collection.
Determines whether the current immutable sorted set is a subset of a specified collection.
Determines whether the current immutable sorted set is a superset of a specified collection.
Gets a read-only reference of the element of the set at the given index.
Determines whether the current immutable sorted set and a specified collection share common elements.
Removes the specified value from this immutable sorted set.
Returns an IEnumerable<T> that iterates over this immutable sorted set in reverse order.
Determines whether the current immutable sorted set and the specified collection contain the same elements.
Creates an immutable sorted set that contains elements that exist either in this set or in a given sequence, but not both.
Creates a collection that has the same contents as this immutable sorted set that can be efficiently manipulated by using standard mutable interfaces.
Searches the set for a given value and returns the equal value it finds, if any.
Adds a given set of items to this immutable sorted set.
Returns the immutable sorted set that has the specified key comparer.