Which collection class to use?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: cksj (cksanjose_at_hotmail.com)
Date: 04/20/04


Date: Tue, 20 Apr 2004 13:25:46 -0500

I'm working on a VB.Net app that has State class (CA, AZ, WA...) and
collection class of State.
Which collection class interface can I use if want to be able to bind the
collection a combo box and at the same time be able to reference the item in
the collection by key?
I know that combo box data source must be an IList but with IList I can't
reference the object with the key.
Can this be done in VB.Net?

Thanks for any ideas,
Cesar



Relevant Pages

  • Which collection class to use?
    ... I'm working on a VB.Net app that has State class and ... Which collection class interface can I use if want to be able to bind the ... reference the object with the key. ...
    (microsoft.public.dotnet.general)
  • Re: Why use a CollectionBase class here vs dataset or dataview?
    ... One of the basics of OOP are the enumerable collections. ... C is a simple item that only holds a back reference to B where it is in. ... one is a collection class. ... Public Class Collaborator ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Which collection class to use?
    ... You will want to use the SortedList collection since this allows each item ... Marc Butenko ... > Which collection class interface can I use if want to be able to bind the ... > reference the object with the key. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Which collection class to use?
    ... You will want to use the SortedList collection since this allows each item ... Marc Butenko ... > Which collection class interface can I use if want to be able to bind the ... > reference the object with the key. ...
    (microsoft.public.dotnet.general)
  • Re: Object reference side effects - desirable?
    ... Where does the reference to the base domain objects ... eg Accounts can be aggregated in a collection class, ...
    (comp.lang.java.programmer)