My .NET collections usually look something like ...
Public Class DogCollection
with typed Add/Remove/Item/Contains methods.
I would like to start creating more versatile collections.
I'd like to be able to ...
>> Access values by index or a string key
>> Custom sorting (not just by key)
>> dim dog1 as dog = dogCollection1("Murphy") or dogCollection1(0) ... how do you make make default methods like these? for ex, the ListView has an items collection, the ListViewItems of which can be accessed by listView1.Items(displayIndex as integer) instead of listView1.Items.Item(displayIndex as integer) - it's a nifty shortcut, especially for collections.
I'll distrubute points fairly to whoever helps out -- links to good examples are appreciated, too. Just don't post a link to MSDN's System.Collections page or something and expect points. Crazy kids :P
Thanks in advance!