[]
        
(Showing Draft Content)

C1.DataCollection.C1LengthList-1

C1LengthList<T> Class

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

Inheritance
C1LengthList<T>
Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public class C1LengthList<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IDisposable where T : struct, INumber<T>
Public Class C1LengthList(Of T As {Structure, INumber(Of T)})
    Implements IReadOnlyList(Of T), IReadOnlyCollection(Of T), IList(Of T), ICollection(Of T), IEnumerable(Of T), IEnumerable, IDisposable
Type Parameters
Name Description
T

Constructors

Name Description
C1LengthList(int, T, 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(T)
Clear()
ClearRange(int, int)

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

Contains(T)
CopyTo(T[], 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(T)
Insert(int, T)
InsertRange(int, IEnumerable<T>)

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(T)
RemoveAt(int)
RemoveRange(int, int)
SetItem(int, T)

Sets an item at the specified index.

Extension Methods