I have class book and in that class I have declared a customer object pointing to null.
When the customer-object isn´t pointing to null I think I get a circular reference error.
I also have another object in which a have a List. If the List is empty it´s no problem but when it is containing objects I get circular reference.
Not sure which is the problem or both.
Thanks to Vulpes for helping me with serielization.
XmlSerializer and circular reference
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Apr 26, 2012, 1:24 PM EDT
If that can't be made to work then you could try using the DataContractSerializer instead.
I'm very short on time just now but perhaps I could refer you to this thread for some ideas on the matter:
http://stackoverflow.com/questions/3815182/circular-reference-when-using-xml-serialization