Method Add
Add(T)
Attempt to add item to internal hashset. If it is not already in the hashset, add it to the list.
Declaration
public bool Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | Item of type |
Returns
Type | Description |
---|---|
bool | True if the item was added to both list and hashset. |