Hi.
I have created several Collection objects which inherit from
System.Collections.CollectionBase
but up until now I've been able to process them according to the order
I populate them from a database.
Now I want to be able to traverse backwards and forward through items
in my collection and apart from loading the whole collection into an
array or Arraylist, I can't work out how.
eg. I have items like "Book" and a collection like "Books".
I can easily process the items with
For each book as Book in m_Books
' do stuff
Next
But I need more flexibility and the collection must have some kind of
index inherited from the CollectionBase
Maybe the arraylist idea is the best but I'm hoping that someone can
tell me about something more elegant that I must have at my fingertips
?
James.