[]
        
(Showing Draft Content)

C1.DataCollection.C1LengthList

C1LengthList Class

Virtual list of double numbers optimized for getting the accumulation up to a specified index;

Inheritance
C1LengthList
Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public sealed class C1LengthList : IReadOnlyList<double>, IReadOnlyCollection<double>, IList<double>, ICollection<double>, IEnumerable<double>, IEnumerable, IDisposable

Constructors

Name Description
C1LengthList(int, double, int)

Initializes a new instance of the C1LengthList class.

Properties

Name Description
Count
IsReadOnly
this[int]
TotalLength

Gets the accumulation of all the lengths in the list.

Methods

Name Description
Add(double)
Clear()
ClearRange(int, int)

Sets to the default length the items in the range for the specified parameters startingIndex and count.

Contains(double)
CopyTo(double[], int)
Dispose()
GetEnumerator()
GetOffset(int)

Gets the accumulated length up to the indicated index (not including).

GetOffset(int, int)

Gets the accumulated length between the specified indexes (including both).

IndexOf(double)
Insert(int, double)
InsertRange(int, IEnumerable<double>)

Inserts the specified newItems at the startingIndex.

InsertRange(int, int)

Inserts the specified count of default length items at the specified startingIndex.

MoveRange(int, int, int)

Moves the number of items specified by count from oldIndex to newIndex.

Remove(double)
RemoveAt(int)
RemoveRange(int, int)
SetItem(int, double)

Sets an item at the specified index.

Extension Methods