Click or drag to resize
OrderedMultiDictionaryTKey, TValueReversed Method
Returns a View collection that can be used for enumerating the keys and values in the collection in reversed order.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public OrderedMultiDictionaryTKey, TValueView Reversed()

Return Value

Type: OrderedMultiDictionaryTKey, TValueView
An OrderedDictionary.View of key-value pairs in reverse order.
Remarks

Typically, this method is used in conjunction with a foreach statement. For example:

foreach(KeyValuePair<TKey, TValue> pair in dictionary.Reversed()) {
   // process pair
}

If an entry is added to or deleted from the dictionary while the View is being enumerated, then the enumeration will end with an InvalidOperationException.

Calling Reverse does not copy the data in the dictionary, and the operation takes constant time.

See Also