Mono Class Library: System.Collections.IList Overview | Members

System.Collections.IList.Item Property

Gets or sets the element at the specified index in the current instance. [Edit]

This is the default property for this class.

public object this [int index] { set; get; }

Parameters

index
A int that specifies the zero-based index of the element to get or set. [Edit]

Value

The element at the specified index in the current instance. [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeExceptionindex is not a valid index in the current instance. [Edit]
NotSupportedExceptionThe property is being set and the current instance is read-only. [Edit]

Remarks

Operation
As described above.

Usage
Use this property for subscript indexing for the current instance in the following form: myCollection[index].

[Edit]

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0