Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ImmutableDictionary<TKey, TValue>.IDictionary<TKey, TValue>.Item Property

Gets or sets the element with the specified key.

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

TValue IDictionary<TKey, TValue>.this[
	TKey key
] { get; set; }


Type: TKey

The key of the element to get or set.

Property Value

Type: TValue
The element with the specified key. If no element is returned, throws a NotSupportedException.


IDictionary<TKey, TValue>.Item

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

© 2015 Microsoft