Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedSet<(Of <(<'T>)>)>..::..View Class

The OrderedSet<T>.View class is used to look at a subset of the Items inside an ordered set. It is returned from the Range, RangeTo, RangeFrom, and Reversed methods.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


[SerializableAttribute]
public class View : CollectionBase<[T]>, ICollection<[T]>
<SerializableAttribute> _
Public Class View _
	Inherits CollectionBase(Of [T]) _
	Implements ICollection(Of [T])
[SerializableAttribute]
public ref class View : public CollectionBase<[T]^>, 
	ICollection<[T]^>

Remarks


Views are dynamic. If the underlying set changes, the view changes in sync. If a change is made to the view, the underlying set changes accordingly.

Typically, this class is used in conjunction with a foreach statement to enumerate the items in a subset of the OrderedSet. For example:

C#
foreach(T item in set.Range(from, to)) {
   // process item
}

Inheritance Hierarchy


Object
  Wintellect.PowerCollections..::..CollectionBase<(Of <(<'[T]>)>)>
    Wintellect.PowerCollections..::..OrderedSet<(Of <(<'T>)>)>..::..View