"Object collection editor"

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.
 
N

Nak

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.
 
C

Cor

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top