I'm trying to find a suitable solution for a collection of objects I have in Visual Basic. I would like the solution to have two properties:
  1. Strong typing
  2. Key-based access (in addition to index-based access)

So far I've been able to find structures that have one or the other. For example, List supports strong typing in its declaration but does not allow element access by key. Meanwhile, Collection elements are key-able but not strongly typed. What is the ideal solution here?

Thanks!