Population<TSolution, TCandidate>.Insert Method

Inserts an item to the IList<T> at the specified index.

Definition

Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.0
C#
public void Insert(
	int index,
	TCandidate item
)

Parameters

index  Int32
The zero-based index at which item should be inserted.
item  TCandidate
The object to insert into the IList<T>.

Implements

IList<T>.Insert(Int32, T)

Exceptions

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

See Also