Share via


ObservableHashSet<T>.Add(T) Method

Definition

Adds the specified element to the hash set.

public virtual bool Add (T item);
abstract member Add : 'T -> bool
override this.Add : 'T -> bool
Public Overridable Function Add (item As T) As Boolean

Parameters

item
T

The element to add to the set.

Returns

true if the element is added to the hash set; false if the element is already present.

Implements

Applies to