I am using sgen.exe to generate a serializer for the classes of my project. Many classes have to be serizalized, and many others don't.
The attribute [XmlIgnore]
doesn't works on classes, so is there a way to do it?
thanks
I am using sgen.exe to generate a serializer for the classes of my project. Many classes have to be serizalized, and many others don't.
The attribute [XmlIgnore]
doesn't works on classes, so is there a way to do it?
thanks
The only way I can think of is adding the XmlIgnore attribute to each property you do not want serialised. Not sure if sgen allows you to specify classes to ignore but I was having a look at this.
Hope that helps!