Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 13th, 2008, 03:05 AM
eBob.com
Guest
 
Posts: n/a
Default XML Serialization - XmlAttributesOverrides

(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


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles