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
TElement type of the list
- Inheritance
-
IArrayImpl<T>ListToIArray<T>
- Implements
-
IArray<T>IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
ListToIArray(List<T>)
public ListToIArray(List<T> a)
Parameters
aList<T>
Properties
this[int]
public override T this[int index] { get; set; }
Parameters
indexint
Property Value
- T
Length
public override int Length { get; }