class · System
SortedSet<T>
public class System.SortedSet<T> : System.Any
A set kept in order: Add, Contains, Remove, Min, Max, and loop (T item in set) from the smallest.
- Tipo
- class
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public
- Archivo fuente
Sorted.ant
Parámetros de tipo
| Nombre | Restricciones |
|---|---|
T | System.IComparable<T> |
Herencia
- Clases base
-
AnySortedSet<T>
Constructores
constructor SortedSet()
#
Propiedades
property Min: T
#
The smallest and largest items (an InvalidOperationError when the set is empty).
property Max: T
#
Métodos
Adds item; false when it was there already.
method Clear() -> void
#
method Iterator() -> System.SortedSetIterator<T>
#
Miembros privados e internos (1)
field tree: System.SortedDictionary<T, bool>
#
Miembros heredados (5)
GetTypemétodo de AnyUndescribedmétodo de AnyToStringmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
SortedSet<T> en Larva HIR, descompilado a partir de su Larva HIR.
// A set kept in order: Add, Contains, Remove, Min, Max, and `loop (T item in set)` from the smallest.
public class System.SortedSet<T> : System.Any
{
field tree: System.SortedDictionary<T, bool>
constructor SortedSet()
// Adds `item`; false when it was there already.
method Add(item: T) -> bool
method Contains(item: T) -> bool
method Remove(item: T) -> bool
method Clear() -> void
method Iterator() -> System.SortedSetIterator<T>
property Count: i32
property IsEmpty: bool
// The smallest and largest items (an InvalidOperationError when the set is empty).
property Min: T
property Max: T
}