ImmutableSortedDictionary<TKey, TValue>.IImmutableDictionary<TKey, TValue>.Remove Method (TKey)

 

Removes the element with the specified key from the immutable dictionary.

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

IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Remove(
	TKey key
)

Parameters

key
Type: TKey

The key of the element to remove.

Return Value

Type: System.Collections.Immutable.IImmutableDictionary<TKey, TValue>

A new immutable dictionary with the matching entry removed; or this instance if the specified key cannot be found in the dictionary.

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

Return to top
Show: