Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedBag<(Of <(<'T>)>)>..::..Item Property

Get the item by its index in the sorted order. The smallest item has index 0, the next smallest item has index 1, and the largest item has index Count-1.

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

Syntax


public T this[
	int index
] { get; }
Public ReadOnly Default Property Item ( _
	index As Integer _
) As T
	Get
public:
property T default[int^ index] {
	T get (int^ index);
}

Parameters

index
Type: Int32
The index to get the item by.

Return Value

The item at the given index.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero or greater than or equal to Count.

Remarks


The indexer takes time O(log N), which N is the number of items in the set.