OrderedSetTReversed Method |
Namespace: X3Platform.Collections
Typically, this method is used in conjunction with a foreach statement. For example:
foreach(T item in set.Reversed()) { // process item }
If an item is added to or deleted from the set while the View is being enumerated, then the enumeration will end with an InvalidOperationException.
Calling Reverse does not copy the data in the tree, and the operation takes constant time.