Here is my object
[Serializable()]
public class PersistentObject
{
public virtual int ID {
get { return id; }
protec
Even though it doesn't directly answer your question, note that you can serialize properties with an internal
setter. To do that, you need to pre-generate the XML serialization assembly with Sgen.exe, and declare that assembly as "friend" using the InternalsVisibleTo
attribute :
[assembly:InternalsVisibleTo("MyAssembly.XmlSerializers")]