Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I want to build a custom collection class for a business object (say, 'Customer').

 

With VB6, I would delegate to a Collection and get the benefit of referencing items in the collection be either Index or Key.

Trying to do the same thing with VB.Net, I tried to inherit 'System.Collections.CollectionBase', but it doesn't provide keys, just the index. So, I tried to inherit from 'System.Collections.Specialized.HybridDictionary', but it doesn't seem to provide the Index property.

 

Is there an object that I can inherit from that gives me both?

 

Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...