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: 6.10.14.0 (6.10.14.0)
C#
public bool Add( T item )
Parameters
- item
- Type: T
The element to add to the set.
Return Value
Type: Booleantrue if the element is added to the set; false if the element is already in the set.