Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Add

func Add(value: T) -> bool

Declaring type: HashSet<T>
Module: System.Collections
Assembly: System.Runtime.dll
Source file: HashSet.rvn

Implements MutableSet<T>.Add

Adds an element without replacing an equivalent stored element.

Parameters

Name Type Description
value T Element to test or modify.

Return value

Boolean

True if membership changed; false otherwise.