ReadOnlyDictionaryBaseTKey, TValueItem Property |
The indexer of the dictionary. The set accessor throws an NotSupportedException
stating the dictionary is read-only.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic virtual TValue this[
TKey key
] { get; set; }
public:
virtual property TValue default[TKey key] {
TValue get (TKey key);
void set (TKey key, TValue value);
}
Parameters
- key
- Type: TKey
Key to find in the dictionary.
Return Value
Type:
TValueThe value associated with the key.
Implements
IDictionaryTKey, TValueItemTKey
Exceptions
RemarksThe get accessor is implemented by calling TryGetValue.
See Also