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
bool FindOrAdd(K key, ref V val)
Parameters
Type | Name | Description |
---|---|---|
K | key | The key to look for |
V | val | 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 |