Export (0) Print
Expand All

ImmutableSortedDictionary<TKey, TValue>.IImmutableDictionary<TKey, TValue>.SetItem Method

Sets the specified key and value in the immutable dictionary, possibly overwriting an existing value for the key.

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

IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItem(
	TKey key,
	TValue value
)

Parameters

key
Type: TKey

The key of the entry to add.

value
Type: TValue

The key value to set.

Return Value

Type: System.Collections.Immutable.IImmutableDictionary<TKey, TValue>
A new immutable dictionary that contains the specified key/value pair.

Implements

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

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.

Show:
© 2014 Microsoft