SortedSet<T>
public class SortedSet<T> : ISet<T>, ICollection<T>, IEnumerable<T>, IEnumerable, ICollection, IReadOnlyCollection<T>
Represents a collection of objects that is maintained in sorted order.
Enumerates the elements of a SortedSet<T> object.
Gets the IEqualityComparer<T> object that is used to determine equality for the values in the SortedSet<T>.
Gets the number of elements in the SortedSet<T>.
Gets the maximum value in the SortedSet<T>, as defined by the comparer.
Gets the minimum value in the SortedSet<T>, as defined by the comparer.
public SortedSet()
Initializes a new instance of the SortedSet<T> class.
Initializes a new instance of the SortedSet<T> class that uses a specified comparer.
Initializes a new instance of the SortedSet<T> class that contains elements copied from a specified enumerable collection.
Initializes a new instance of the SortedSet<T> class that contains elements copied from a specified enumerable collection and that uses a specified comparer.
Adds an element to the set and returns a value that indicates if it was successfully added.
Removes all elements from the set.
Determines whether the set contains a specific element.
Copies the complete SortedSet<T> to a compatible one-dimensional array, starting at the beginning of the target array.
Copies the complete SortedSet<T> to a compatible one-dimensional array, starting at the specified array index.
Copies a specified number of elements from SortedSet<T> to a compatible one-dimensional array, starting at the specified array index.
Removes all elements that are in a specified collection from the current SortedSet<T> object.
Returns an enumerator that iterates through the SortedSet<T>.
Returns a view of a subset in a SortedSet<T>.
Modifies the current SortedSet<T> object so that it contains only elements that are also in a specified collection.
Determines whether a SortedSet<T> object is a proper subset of the specified collection.
Determines whether a SortedSet<T> object is a proper superset of the specified collection.
Determines whether a SortedSet<T> object is a subset of the specified collection.
Determines whether a SortedSet<T> object is a superset of the specified collection.
Determines whether the current SortedSet<T> object and a specified collection share common elements.
Removes a specified item from the SortedSet<T>.
Removes all elements that match the conditions defined by the specified predicate from a SortedSet<T>.
Returns an IEnumerable<T> that iterates over the SortedSet<T> in reverse order.
Determines whether the current SortedSet<T> object and the specified collection contain the same elements.
Modifies the current SortedSet<T> object so that it contains only elements that are present either in the current object or in the specified collection, but not both.
Modifies the current SortedSet<T> object so that it contains all elements that are present in either the current object or the specified collection.