Mono Class Library: System.Collections.Generic.IList<T> Overview | Members

System.Collections.Generic.IList<T>.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 T this [int index] { set; get; }

Parameters

index
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

This property provides the ability to access a specific element in the collection by using some language-specific syntax. [Edit]

Requirements

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0