G
Guest
If you remove an item from a collection (that is derived from CollectionBase and thus implements IList
will the index property automatically 'shuffle' up one
i.e. if of {0, 1, 2, 3} I delete item 2, then will I be left with {0, 1, 2} or {0, 1, 3}
Basically I am implementing a custom collection and wondered if I could rely o
the fact that for(int i=0; i<List.Count; i++) would always be an appropriate loop.
will the index property automatically 'shuffle' up one
i.e. if of {0, 1, 2, 3} I delete item 2, then will I be left with {0, 1, 2} or {0, 1, 3}
Basically I am implementing a custom collection and wondered if I could rely o
the fact that for(int i=0; i<List.Count; i++) would always be an appropriate loop.