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.
Loading
VulpesPosted Apr 26, 2012, 5:24 PM
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