OrderedDictionary<(Of <(<'TKey, TValue>)>)>..::..View Class
The OrderedDictionary<TKey,TValue>.View class is used to look at a subset of the keys and values
inside an ordered dictionary. It is returned from the Range, RangeTo, RangeFrom, and Reversed methods.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
[SerializableAttribute] public class View : DictionaryBase<[TKey], [TValue]>
<SerializableAttribute> _ Public Class View _ Inherits DictionaryBase(Of [TKey], [TValue])
[SerializableAttribute] public ref class View : public DictionaryBase<[TKey]^, [TValue]^>
Remarks
Views are dynamic. If the underlying dictionary changes, the view changes in sync. If a change is made to the view, the underlying dictionary changes accordingly.
Typically, this class is used in conjunction with a foreach statement to enumerate the keys and values in a subset of the OrderedDictionary. For example:
C#
foreach(KeyValuePair<TKey, TValue> pair in dictionary.Range(from, to)) { // process pair }
Inheritance Hierarchy
Wintellect.PowerCollections..::..CollectionBase<(Of <(<'KeyValuePair<(Of <(<'TKey, TValue>)>)>>)>)>
Wintellect.PowerCollections..::..DictionaryBase<(Of <(<'[TKey], [TValue]>)>)>
Wintellect.PowerCollections..::..OrderedDictionary<(Of <(<'TKey, TValue>)>)>..::..View