Method TryAdd
TryAdd(TLeft, TRight)
Attempts to add an association between the specified left and right values to the map.
Declaration
bool TryAdd(TLeft leftValue, TRight rightValue)
Parameters
| Type | Name | Description |
|---|---|---|
| TLeft | leftValue | |
| TRight | rightValue |
Returns
| Type | Description |
|---|---|
| bool | true if the association was added, or false if the left or right value was already present in the map. |