1

I have a base class ("MyBaseClass") in a project called "BaseFramework" which is included in several solutions within the company. There are several derived class's in various projects throughout the company that inherit from "MyBaseClass". If I then create a List and add derived class's to it, it will not serialize. I realise that if I were attempting to serialize this list, and the base class and derived class were in the same project, I could simply apply the "XmlInclude" attribute to the base class and include all of the derived class's. This is however not possible across projects, because that would require a circular dependency. Is this possible to do?

Ben
  • 3,926
  • 12
  • 54
  • 87
  • possible duplicate of [XML Serialization and Inherited Types](http://stackoverflow.com/questions/20084/xml-serialization-and-inherited-types) – Rowland Shaw Jul 20 '10 at 08:33

1 Answers1

0

If you are looking at sending stuff over network, then you should definitelly look into .Net XML Web Services.

http://www.youtube.com/watch?v=12PGpwy8SUY

http://msdn.microsoft.com/en-us/library/ms996507.aspx

Hamish Grubijan
  • 10,562
  • 23
  • 99
  • 147