Method TryAdd
TryAdd(TLeft, TRight)
Attempts to add an association to map between the specified left and right value.
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, otherwise false if the left or right value was already present in the map. |