How does SelectedListViewItemCollection implement IList but not have Add()?
问题 I am trying to mimic the way a ListView and other controls handle SelectedItems collections. I have a class with a collection of items and each Item has a Selected property. I want to mimic the smart behavior where an Item can change its own Selected property and upon doing so would raise a SelectedItemsChanged event in the parent class, and the SelectedItems collection should now reflect the change. I am trying to implement a SelectedItemsCollection class which does not contain an inner list