class · System

HashSet<T>

public class System.HashSet<T> : System.Any

A set of values by hash: Add, Contains, Remove, and loop (T item in set).

Tipo
class
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public
Archivo fuente
Dictionary.ant

Parámetros de tipo

NombreRestricciones
TSystem.IHashable<T>

Herencia

Clases base
Any HashSet<T>

Constructores

constructor HashSet()
#

Propiedades

property Count: i32
#

read-only

Métodos

method Add(item: T) -> bool
#

Adds item; false when it was already there.

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

loop (T item in set).

Miembros privados e internos (1)

field items: System.Dictionary<T, bool>
#

private

Miembros heredados (5)

Código fuente

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

System.HashSet.hir
// A set of values by hash: Add, Contains, Remove, and `loop (T item in set)`.
public class System.HashSet<T> : System.Any
{
    field items: System.Dictionary<T, bool>
    constructor HashSet()
    // Adds `item`; false when it was already there.
    method Add(item: T) -> bool
    method Contains(item: T) -> bool
    method Remove(item: T) -> bool
    method Clear() -> void
    // `loop (T item in set)`.
    method Iterator() -> System.ListIterator<T>
    property Count: i32
}
Esc