PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Hash­Set<T>Add
Open sandboxFocus

AdvisableHashSet<T>.Add Method

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.