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: 2023.0.3.0 (2023.0.3.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]IReadOnlyList<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. |