XML serializing a list of a base class?

XmlIncludeAttribute will do the trick If you go to this url, you will find a code sample there too.

XmlIncludeAttribute will do the trick. If you go to this url, you will find a code sample there too. Also, in the example the attribute is applied to the method, but you might want to apply it class A in your case.

Thanks again... you've saved me a huge headache. I've been stuck all day on a few weird aspects of serialization :) one related note - since the serializable goes through calling the get on each public member - is there some sort of conditional get? I ask because I use it for binding as well, so my get/set change the properties and thus the second time it 'sets' (from deserializing) it isnt what was originally expected to go into the set – Steve May 30 at 4:58 I would call it 'conditional accessors' (is that possible?) – Steve May 30 at 5:02 Not sure I understood the question.

On serialization it runs get on all your public properties (fields too). On deserialization it creates an object via default constructor and then calls set on each property. – Alex Aza May 30 at 5:04 1 If you mean if you can tell from code inside of set if it was called by serializer, I don't think there any standard ways to do it.

With reflection you can, but I would recommend to use custom xml serialization instead. – Alex Aza May 30 at 5:06 I think what I'm actually looking for is the OnSerializing attributes... but the issue is I cant seem to get it to work on Windows Phone 7 :( – Steve May 30 at 6:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions