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

NameConstraints
TSystem.IHashable<T>

Inheritance

Base classes
Any HashSet<T>

Constructors

constructor HashSet()
#

Properties

property Count: i32
#

read-only

Methods

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).

Private and internal members (1)

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

private

Inherited members (5)

Source

HashSet<T> as Larva HIR, decompiled from its 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