0

Resolved

Add index is wrong

description

private int Add(Box<T> Element)
The computed index for the new item is wrong since it doesn't count the InvisibleCount
 
the wrong statement is:
int NewIndex = _ArrayCount - 1;
the new correct statement is:
int NewIndex = _ArrayCount -_InvisibleCount - 1;

comments