OrderedDictionaryTKey, TValueReplace Method |
Namespace: X3Platform.Collections
Exception | Condition |
---|---|
KeyNotFoundException | key is not present in the dictionary |
Unlike adding or removing an element, changing the value associated with a key can be performed while an enumeration (foreach) on the the dictionary is in progress.
Equality between keys is determined by the comparison instance or delegate used to create the dictionary.
Replace takes time O(log N), where N is the number of entries in the dictionary.