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

NombreRestricciones
TSystem.IComparable<T>

Herencia

Clases base
Any SortedSet<T>

Constructores

constructor SortedSet()
#

Propiedades

property Count: i32
#

read-only

property IsEmpty: bool
#

read-only

property Min: T
#

read-only

The smallest and largest items (an InvalidOperationError when the set is empty).

property Max: T
#

read-only

Métodos

method Add(item: T) -> bool
#

Adds item; false when it was there already.

method Contains(item: T) -> bool
#
method Remove(item: T) -> bool
#
method Clear() -> void
#
method Iterator() -> System.SortedSetIterator<T>
#

Miembros privados e internos (1)

field tree: System.SortedDictionary<T, bool>
#

private

Miembros heredados (5)

Código fuente

SortedSet<T> en Larva HIR, descompilado a partir de su Larva HIR.

System.SortedSet.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
}
Esc