C#'s IEnumerator doesn't have a next() and remove() how do I solve this? (hitScans is an ArrayList)
// Iterator it = enemyWaves.iterator();
IEnumerator it = hitScans.GetEnumerator();
while (it.MoveNext())
{
if ((dist = ((ew = (EnemyWave)it.next()).distanceTraveled += ew.bulletVelocity)
- myLocation.distance(ew.fireLocation)) > 50)
{
it.remove();
continue;
}
and
// Iterator i = hitScans.iterator();
IEnumerator i = hitScans.GetEnumerator();
while (i.MoveNext())
{
double[] scan = (double[])i.next();