Table of Contents

Class DynamicSizeArray<T>

Namespace
AndrasCsanyi.DataStructuresAndAlgs.DynamicSizeArray
Assembly
AndrasCsanyi.DataStructuresAndAlgs.dll
public class DynamicSizeArray<T> : IDynamicSizeArray<T>

Type Parameters

T

Inheritance

Implements

Inherited Members

Constructors

DynamicSizeArray()

public DynamicSizeArray()

Methods

Add(T)

Adds a type T elem to the list. The place of the item is after the last item in the list.

public void Add(T item)

Parameters

item T

The item to be added.

Count()

Returns the amount of elements in the Dynamic Size Array. The amount of elements does not equal to the allocated size of the storage array of the implementation. For that AndrasCsanyi.DataStructuresAndAlgs.DynamicSizeArray.DynamicSizeArray`1.StorageSize test method.

public int Count()

Returns

int

The amount of elements in the Dynamic Size Array.

Get(int)

Returns the elements at the defined index value.

public T Get(int index)

Parameters

index int

The index value.

Returns

T

Element of {T}.

StorageDefaultSize()

public int StorageDefaultSize()

Returns

int

StorageSize()

public int StorageSize()

Returns

int