ImmutableSortedDictionary<TKey, TValue>.ICollection<KeyValuePair<TKey, TValue>>.Remove Method

Removes the first occurrence of the specified object from the immutable dictionary.

Namespace:  System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

bool ICollection<KeyValuePair<TKey, TValue>>.Remove(
	KeyValuePair<TKey, TValue> item
)

Parameters

item
Type: System.Collections.Generic.KeyValuePair<TKey, TValue>

The item to remove from the dictionary.

Return Value

Type: System.Boolean
true if the item was successfully removed; otherwise, false.

Implements

ICollection<T>.Remove(T)

This member is an explicit interface member implementation. It can be used only when the ImmutableSortedDictionary<TKey, TValue> instance is cast to an ICollection<T> interface.

Show: