VirtualCollectionTItem Property

Gets or sets the element at the specified index.
When read, calls the overridable GetItem method, and when set, calls the overridable SetItem method.

Definition

Namespace: KGySoft.Collections.ObjectModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public T this[
	int index
] { get; set; }

Parameters

index  Int32
The zero-based index of the element to get or set.

Return Value

T
The element at the specified index.

Implements

IListTItemInt32
IReadOnlyListTItemInt32

Exceptions

ArgumentOutOfRangeExceptionindex is less than zero, or is equal to or greater than Count.
NotSupportedExceptionThe value is set and CanSetItem returns .

See Also