Click or drag to resize
BigListTItem Property
Gets or sets an item in the list, by index.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public override sealed T this[
	int index
] { get; set; }

Parameters

index
Type: SystemInt32
The index of the item to get or set. The first item in the list has index 0, the last item has index Count-1.

Return Value

Type: T
The value of the item at the given index.

Implements

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

Gettingor setting an item takes time O(log N), where N is the number of items in the list.

To process each of the items in the list, using GetEnumerator() or a foreach loop is more efficient that accessing each of the elements by index.

See Also