KGy SOFT

VirtualCollectionTItem Property

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

Namespace:  KGySoft.Collections.ObjectModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0-rc.1
Syntax

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

Parameters

index
Type: SystemInt32
The zero-based index of the element to get or set.

Return Value

Type: T
The element at the specified index.

Implements

IListTItemInt32
IReadOnlyListTItemInt32
Exceptions

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

Reference