PropertyGrid and ArrayList

G

Guest

I have a class:

public class ZType : ICustomTypeDescriptor
{
private ArrayList el = new ArrayList();

[Editor(typeof(MyCustomEditorTypes), typeof(UITypeEditor)), Browsable(true),
Category("Data")]
public ArrayList Elements
{
get { return this.el; }
set { this.el = value; }
}

.....
}

I'm placing this into a propertyGrid and for some machines the setter fails.
Any ideeas?
Thanks
 
V

Vadym Stetsyak

it is rather strange situation.
what do you mean by "strange situation"? are there any exceptions. Is it
possible that the setter is called an value of other type then ArrayList is
specified?

If you have PropertyDescriptors - check what returns GetPropertyType of the
PropertyDescriptor.
 
G

Guest

The setter is never called on some machines. That's very strange, why it olny
working for some machines???
 

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