I have a class called CBike

Now I need a class that will act as a collection of bikes..

I want to be able to use for... each and also to access bikes by


mybikecollection.item(3).GetName <-- where getname is a property of CBike

Which framework class should I inherit so that I can do all this? I need one that implements ICollection, and I want it to be pretty fast...

Is it enough to make it like this:

class CVehicleCOllection : inherits Collection

end class


os what enlse is needed?

I need a collection that can store items of a specific type! If I make them an arraylist I need to convert from object to CBike.. I don't want to do that..


kind regards