XML Serialization of internal members

T

ThunderMusic

Hi,
I have a class that must be serialized. One of it's properties cannot be
serialized so I mark it with [XmlIgnore] and replace it with a property I
serialize "manually" (I put the elements in an array). I don't want the
users to use this method, so I'd mark it as internal, but if I mark it as
internal, it's not serialized anymore... Is there a way around it? I want
the property to be serializable, but not usable by external sources...

Thanks

ThunderMusic
 

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