Method ICollection<KeyValuePair<TLeft, TRight>>.Remove
ICollection<KeyValuePair<TLeft, TRight>>.Remove(KeyValuePair<TLeft, TRight>)
Removes the association between the specified left and right values from the map if they are currently associated with each other.
Declaration
bool ICollection<KeyValuePair<TLeft, TRight>>.Remove(KeyValuePair<TLeft, TRight> item)
Parameters
| Type | Name | Description |
|---|---|---|
| KeyValuePair<TLeft, TRight> | item |
Returns
| Type | Description |
|---|---|
| bool | true if the association was found and removed, otherwise false. |
Implements
Remarks
If the specified left and right values are not associated with each other then no changes are made to the map and the method returns false.