all groups > dotnet windows forms designtime > april 2004 >
You're in the

dotnet windows forms designtime

group:

serializing a property type


serializing a property type Bob
4/27/2004 8:17:24 PM
dotnet windows forms designtime:
I have a type converter with a few standard values for a property of type
Type. It works great, only GetType() can't handle names with a "+" in them,
though a Type's FullName property can contain one. So how do I fix this?

I've poked around with a custom CodeDomSerializer, and parsed through the
statements to find the offending CodeTypeOfExpression, only to find that I
can't get at the actual name of the type from that kind of object. I'm so
close, all's I need is the string expression representing the Type... how do
I get at it?

Or maybe there is a simpler solution?

TIA,
Bob
Re: serializing a property type Bob
4/27/2004 8:38:43 PM
I figured it out, works great now... but I wonder if the custom
CodeDomSerializer was really necessary?

Bob

[quoted text, click to view]
AddThis Social Bookmark Button