[]
        
(Showing Draft Content)

C1.DataCollection.C1DynamicList-1

C1DynamicList<T> Class

List which can be initialized with an arbitrary Count of (null) items.

Inheritance
C1DynamicList<T>
Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public sealed class C1DynamicList<T> : IReadOnlyList<T?>, IReadOnlyCollection<T?>, IList<T?>, ICollection<T?>, IEnumerable<T?>, IList, ICollection, IEnumerable, IDisposable
Type Parameters
Name Description
T
Remarks

This collection optimizes the memory for large collections needing to allocate memory on demand.

Constructors

Name Description
C1DynamicList()

Initializes a new instance of the C1DynamicList<T> class.

C1DynamicList(int, int)

Initializes a new instance of the C1DynamicList<T> class.

Properties

Name Description
Count

Gets the number of items(and nulls) in the collection.

IsFixedSize
IsReadOnly

Gets whether the collection is read-only.

IsSynchronized
this[int]

Gets the item at the specified index.

SyncRoot

Methods

Name Description
Add(object?)
Add(T?)
Clear()
ClearRange(int, int)

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

Clone()

Clones this instance.

Contains(object?)
Contains(T?)
CopyTo(Array, int)
CopyTo(T?[], int)
Dispose()
FindIndex(int, int, Predicate<T?>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the System.Collections.Generic.List`1 that starts at the specified index and contains the specified number of elements.

GetEnumerator()
GetItems(bool, int?, int?)

Returns the items in the list.

IndexOf(object?)
IndexOf(T?)
Insert(int, object?)
Insert(int, T?)
InsertRange(int, IEnumerable<T?>)
InsertRange(int, int)

Inserts the specified count of items (nulls) at the specified startingIndex.

MoveRange(int, int, int)

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

Remove(object?)
Remove(T?)
RemoveAt(int)
RemoveRange(int, int)

Extension Methods