I am trying to implement my own collection class for an object in VB by inheriting 
from System.Collection.CollectionsBase.  However, I would like to use a key to insert 
my objects into the collection.  It looks like the add method in the collectionsbase 
class has only the object as an argument.

Is there another class that I can inherit from that does what I need it to do.  

Ideally, I want to be able to do something like I used to be able to do in vb6:

Public Sub Add(objItemToAdd As OrderDetail, _
               Optional Key As String = "", _
    mCollection.Add objItemToAdd, Key
End Sub

Thanks in advance,

Linda

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to