Population<TSolution, TCandidate>.Item Property

Gets the element at the specified index in the read-only list.

Definition

Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.3
C#
public TCandidate this[
	int index
] { get; set; }

Parameters

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

Return Value

TCandidate
The element at the specified index in the read-only list.

Implements

IReadOnlyList<T>.Item[Int32]
IList<T>.Item[Int32]

Exceptions

ArgumentOutOfRangeExceptionindex is not a valid index in the IList<T>.
NotSupportedExceptionThe property is set and the IList<T> is read-only.

See Also