System.Collections.Generic.List<T>.Item Property
Gets or sets the element at the specified index of the current instance.

Syntax

This is the default property for this class.

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

Parameters

index
The zero-based index of the element in the current instance to get or set.

Value

The element at the specified index of the current instance.

Exceptions

TypeReason
ArgumentOutOfRangeException

index < 0.

-or-

index >= System.Collections.Generics.List<T>.Count of the current instance.

Remarks

Documentation for this section has not yet been entered.

Requirements

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