"Object collection editor"

  • Thread starter Thread starter Nak
  • Start date Start date
N

Nak

Hi there,

I am trying to make a collection that will work in the "Object
collection editor" dialog. I have implimeneted ICollection, IList and
IEnumerable and now I have an "unnamed" collection, so the collection just
contains "objects". I would like it to contain my own objects "myItem" so
that I can edit the individual properties via the dialog but when I change
the types in the class from object to "myItem" it breaks the interface
compatability. Has anyone any ideas on how I can implement a named
collection for this use? Thanks in advance.

Nick.
 
Oh, I have just found out that I have to "inherit" from collectionbase. So
does that mean that my collections aren't strongly named as I have only
impliemented the interfaces?? Would I benefit from inheriting from
collection base on all accounts? Thanks in advance.

Nick.
 
Nick,
Do you know that there is a walkthrough on MSDN "creating your own
collection class" there is that collectionbase mentioned too.
Just to help, I saw it when I was looking for the right name from the
distributed application walkthrough.
I have till now no knowledge about the subject but maybe I go look at that
walkthrough, it can be intresting.
Cor
 
Back
Top