Method FindOrAdd
FindOrAdd(ref T)
Check if this collection contains an item equivalent according to the itemequalityComparer to a particular value. If so, return in the ref argument (a binary copy of) the actual value found. Else, add the item to the collection.
Declaration
bool FindOrAdd(ref T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The value to look for. |
Returns
Type | Description |
---|---|
System.Boolean | True if the item was found (hence not added). |