AdvisableCollection<T>.Item Property |
Gets or sets the element at the specified index.
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.6.14.0 (6.6.14.0)
C#
public T this[ int index ] { get; set; }
Parameters
- index
- Type: System.Int32
The zero-based index of the element to get or set.
Return Value
Type: TThe element at the specified index.
Implements
IList<T>.Item[Int32]Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is not a valid index in the IList<T>. |
NotSupportedException | The property is set and the IList<T> is read-only. |