Click or drag to resize
ReadOnlyDictionaryBaseTKey, TValueItem Property
The indexer of the dictionary. The set accessor throws an NotSupportedException stating the dictionary is read-only.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public virtual TValue this[
	TKey key
] { get; set; }

Parameters

key
Type: TKey
Key to find in the dictionary.

Return Value

Type: TValue
The value associated with the key.

Implements

IDictionaryTKey, TValueItemTKey
Exceptions
ExceptionCondition
NotSupportedExceptionAlways thrown from the set accessor, indicating that the dictionary is read only.
KeyNotFoundExceptionThrown from the get accessor if the key was not found.
Remarks
The get accessor is implemented by calling TryGetValue.
See Also