you can look at an ArrayList for example, add objects in there, retrieve objects back also giving it a specific index too. Is this what you maybe after or something much more than this
ArrayList theCollectionOfObjects = new ArrayList();
theCollectionOfObjects.Add(yourObject)
//the total number of collections:
theCollectionOfObjects.Count
that would also give you the current position in the arraylist, since you will be on the last count before a new entry is to be inserted.
|