Okay something has been driving me crazy.
I see in the MSDN documentation that ToolBar.ToolBarButtonCollection
implements the IList interface.
The I look at members in the ToolBars.Buttons collection like:
public void Add(ToolBarButton button);
public ToolBarButton this[int index];
which don't implement the interface at all. The interface forces Add to take
an object and the indexer to return an object.
I guess what I am getting at is can I make my own custom collection class
that doesn't strictly implement the IList interface but just has methods
with the names of the IList interface, and then will it still work in the
designer. And Why does the documentation say that collections like
ToolBarButtonCollection implement IList when they really don't? Or am I
missing something else?
thanks,
Adam dR.