CastArrayTFrom, TToItem Property
Gets or sets the element at the specified index.
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.5.0
public TTo this[
int index
] { get; set; }
Public Default Property Item (
index As Integer
) As TTo
Get
Set
public:
virtual property TTo default[int index] {
TTo get (int index) sealed;
void set (int index, TTo value) sealed;
}
abstract Item : 'TTo with get, set
override Item : 'TTo with get, set
- index Int32
- The zero-based index of the element to get or set.
TToThe element at the specified index.
IListTItemInt32IReadOnlyListTItemInt32 | IndexOutOfRangeException | index is less than zero or greater or equal to Length. |
| NotSupportedException | .NET Framework only: you access this member in a partially trusted AppDomain that does not allow executing unverifiable code. |
| DataMisalignedException | TTo is a primitive type of size larger than 1 byte, the address of the result
is not properly aligned at the specified index, and the executing architecture does not support misaligned memory access (e.g. ARM). |