ImmutableDictionary<TKey, TValue>.IImmutableDictionary<TKey, TValue>.Clear Method

Retrieves an empty dictionary that has the same ordering and key/value comparison rules as this dictionary instance.

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

IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Clear()

Return Value

Type: System.Collections.Immutable.IImmutableDictionary<TKey, TValue>
An empty dictionary with equivalent order and key/value comparison rules.


IImmutableDictionary<TKey, TValue>.Clear()

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