Method FindOrAdd
FindOrAdd(ref T)
Check if an item (collection equal to a given one) is in the set. If found, report the actual item object in the set, else add the supplied one.
Declaration
public virtual bool FindOrAdd(ref T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | On entry, the item to look for or add. On exit the actual object found, if any. |
Returns
Type | Description |
---|---|
System.Boolean | True if item was found |