Method TryAdd
TryAdd(TAlternateLeft, TRight)
Attempts to add an association to map between the specified alternate left value and right value.
Declaration
public bool TryAdd(TAlternateLeft leftValue, TRight rightValue)Parameters
| Type | Name | Description | 
|---|---|---|
| TAlternateLeft | 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. | 
TryAdd(TAlternateLeft, TRight, out TLeft)
Attempts to add an association to map between the specified alternate left value and right value.
Declaration
public bool TryAdd(TAlternateLeft leftValue, TRight rightValue, out TLeft actualLeftValue)Parameters
| Type | Name | Description | 
|---|---|---|
| TAlternateLeft | leftValue | |
| TRight | rightValue | |
| TLeft | actualLeftValue | 
Returns
| Type | Description | 
|---|---|
| bool | true if the association was added, otherwise false if the left or right value was already present in the map. | 
