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).
- Kind
- class
- Namespace
- System
- Assembly
- System.Core
- Access
- public
- Source file
Dictionary.ant
Type parameters
| Name | Constraints |
|---|---|
T | System.IHashable<T> |
Inheritance
- Base classes
-
AnyHashSet<T>
Constructors
constructor HashSet()
#
Properties
Methods
Adds item; false when it was already there.
method Clear() -> void
#
method Iterator() -> System.ListIterator<T>
#
loop (T item in set).
Private and internal members (1)
field items: System.Dictionary<T, bool>
#
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
HashSet<T> as Larva HIR, decompiled from its 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
}