SparseArray
November 14, 2020 ยท View on GitHub
Implements: IEnumerable<T>
Provides a memory efficient implementation of an array in which most of the elements have the default value.
Constructors
SparseArray() Initializes a new instance of SparseArray
SparseArray(int length) Initializes a new instance of SparseArray
SparseArray(T defaultValue) Initializes a new instance of SparseArray
SparseArray(int length, T defaultValue) Initializes a new instance of SparseArray
Properties
int Count Gets the number of elements with value other than the default one.
int Length Gets the total length of the SparseArray
ICollection<int> Indices Gets an ICollection
ICollection<T> Values Gets an ICollection
T this[int index] Gets or sets the value of the element at the specified index of the SparseArray