Version

Search Results

HashSet<T> Class Methods

Public Methods

HashSet<T> Class Properties

Public Properties

Add Method (HashSet<T>)

Adds an item to this collection. Syntax Parameters item An item to add.

Clear Method (HashSet<T>)

Clears this collection. Syntax

Comparer Property

Gets the equality comparer. Syntax

Contains Method (HashSet<T>)

Checks whether this collection contains the specified item. Syntax Parameters item An item to check. Return Value A boolean value indicating whether this collection contains the specified item.

Count Property (HashSet<T>)

Gets the number of entries in this collection. Syntax

Items Property

Gets the entries of this hash collection as a list. Syntax

Remove Method

Removes an item from this collection. Syntax Parameters item An item to remove.

HashSet<T> Constructor()

Initializes a new instance of the HashSet class. Syntax