IList and DictionaryBase
Posted on 2004-10-29
is there anyway to add the IList interface to the DictionaryBase?
A little background first. I am attempting to set the datasource of a datagrid to a collection that inherits from the DictionaryBase class. Turns out that for the DataSource property to accept a component, that component must implement the IList interface.
The snag I run into is that I do not know how to write the Add method of the IList interface.
The header of my collection class looks like this:
public class Employees : DictionaryBase, IList
Is it possible to write an additonal Add method for the ILIst? If so, could someone please provide some sample code.