So I'm trying to make a generic TreeNode interface in order to simplify converting between a Windows Forms TreeView and an ASP.NET TreeView. I define one of the properties on the interface (Children) as an ICollection, but when I then try to implement the property as a Collection (or ArrayList, or any other class that implements ICollection), it doesn't work. The same is true if I define the interface property as CollectionBase. Am I doing something wrong, or is this just a VB limitation, or something else? I just don't see the point of creating an interface if it can't be defined using base classes or other interfaces... that really limits the usefulness of interfaces as far as I can tell. Any suggestions would be greatly appreciate. Thanks.
Mike
Mike
Comment