M42.Collections by Daniel Pelsmaeker

<PackageReference Include="M42.Collections" Version="0.6.5056.5071" />

 ArrayList<T>

public class ArrayList<T> : MutableListBase<T>, IFreezable
A mutable list of elements of type T.
protected int Capacity { get; protected set; }

Gets or sets the capacity of the underlying array.

public ArrayList()

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

public ArrayList(int capacity)

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

public ArrayList(int capacity, IEqualityComparer<T> comparer)

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

public ArrayList(IEqualityComparer<T> comparer)

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

public ArrayList(IEnumerable<T> collection)

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

public void CopyTo(Array<T> array)

Copies all elements from the list to the specified array.

public void CopyTo(Array<T> array, int arrayIndex)

Copies all elements from the list to the specified array.

public void CopyTo(int startIndex, Array<T> array, int arrayIndex, int count)

Copies a range of elements from the list to the specified array.

protected void EnsureCapacity(int minCapacity)

Ensures that the internal array has a capacity equal to or greater than the specified capacity.

public void Freeze()