Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Hash­Set(T) Class / Advisable­Hash­Set(T) Methods / Advisable­Hash­Set(T).​Add Method

AdvisableHashSet<T>.Add Method

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

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.51.0 (5.0.51.0)
Syntax
C#
public bool Add(
	T item
)

Parameters

item
Type: T
The element to add to the set.

Return Value

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

Implements

ISet<T>.Add(T)
See Also