(I posted this earlier today to the dotnet.languages.vb group but then
discovered this more appropriate ng.)
I am trying to XML Serialize a user control object. I'm getting the
infamous "There was an error reflecting type" message. That message doesn't
really help me but I suspect that the problem is that my user control class
Inherts from UserControl. I don't really care about serializing any of the
members of UserControl but I don't know how to tell XML Serializer that.
Balena (a really excellent book; but some sections of it, like the section
on XML Serialization, are over my head) suggests that an
XmlAttributesOverrides object might be the solution. But I can't understand
if I will have to specify XmlIgnoreAttribute for all of the members of
UserControl, I don't want any of them, or can I just deal with the few
members of my user control that I do want serialized. In other words, in an
XmlAttributesOverrides object do you opt in the members you want or opt out
the ones you don't want?
Thanks, Bob