Method FindOrAdd
FindOrAdd(K, ref V)
Look for a specific key in the dictionary. If found, report the corresponding value, else add an entry with the key and the supplied value.
Declaration
public virtual bool FindOrAdd(K key, ref V value)
Parameters
Type | Name | Description |
---|---|---|
K | key | On entry the key to look for |
V | value | On entry the value to add if the key is not found. On exit the value found if any. |
Returns
Type | Description |
---|---|
System.Boolean | True if key was found |