Table of Contents

Class ListToIArray<T>

Namespace
CADability
Assembly
CADability.dll

Adapter which exposes a List<T> as an IArray<T> without copying it, so that a list can be passed to methods which take an IArray<T>, e.g. the fitting methods of GaussNewtonMinimizer. Reading and writing by index goes straight through to the list. Internal helper, not an entry point of the API.

public class ListToIArray<T> : IArrayImpl<T>, IArray<T>, IEnumerable<T>, IEnumerable

Type Parameters

T

Element type of the list

Inheritance
ListToIArray<T>
Implements
Inherited Members
Extension Methods

Constructors

ListToIArray(List<T>)

public ListToIArray(List<T> a)

Parameters

a List<T>

Properties

this[int]

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

Parameters

index int

Property Value

T

Length

public override int Length { get; }

Property Value

int