PostSharp//API Reference/Post­Sharp.​Patterns.​Collections/Advisable­Hash­Set<T>/Add
Open sandboxFocus

Method Add

Add(T)

Adds an element to the current set and returns a value to indicate if the element was successfully added.

Declaration
public bool Add(T item)
Parameters
Type Name Description
T item

The element to add to the set.

Returns
Type Description
Boolean

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