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
| Nombre | Restricciones |
|---|---|
T | System.IHashable<T> |
Herencia
- Clases base
-
AnyHashSet<T>
Constructores
constructor HashSet()
#
Propiedades
Métodos
Adds item; false when it was already there.
method Clear() -> void
#
method Iterator() -> System.ListIterator<T>
#
loop (T item in set).
Miembros privados e internos (1)
field items: System.Dictionary<T, bool>
#
Miembros heredados (5)
GetTypemétodo de AnyUndescribedmétodo de AnyToStringmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
HashSet<T> en Larva HIR, descompilado a partir de su Larva 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
}