Including the kitchen sink …

Mitch asks why doesn’t List(Of T) raise events when items are added or removed.  The answer of course is because List(Of T) is the basic low level list.  It’s the engine on a minimal chassis, designed much like a formula one car.  Sure you could add things to it, but then it quickly becomes like an RV, kitchen sink and all.


Instead, if you want a “rich” collection, that is designed for UI notification when items are added or removed, then use the BindingList(Of T), and keep List(Of T) for those cases when you want just the bare minimum J



2 Comments so far

  1.   Chris Garty on September 13th, 2004          

    Where can I find the generic BindingList?

  2.   Chris Garty on September 13th, 2004          

    System.ComponentModel.Collections.Generic

    Nice.