Getting TypeConverter error that makes no sense
Posted
by Greg McGuffey
on Stack Overflow
See other posts from Stack Overflow
or by Greg McGuffey
Published on 2010-03-16T00:12:33Z
Indexed on
2010/03/16
0:19 UTC
Read the original article
Hit count: 655
.NET
|typeconverter
I have a TypeConverter for a TopMostNode class. It extends ExpandableObjectConverter. The TopMostNode has two properties. Setting those in the property grid results in correctly serialized code to the designer. However, if I type in text for the property, I get a "Property value is not valid" error and the details say:
Object of type 'TopMostNode' cannot be converted to type 'TopMostNode'.
I'm baffled. When I step through the type converter ConvertFrom code, it runs as expected. I don't even know were to start looking for an issue like this.
© Stack Overflow or respective owner