problem when serializing

  • Thread starter Thread starter fred
  • Start date Start date
F

fred

I have an abstract class, say ClassA decorated with
[XmlRoot("foo")]

Now I write this class:

class ClassB:ClassA
{
}

When I serialize it, the root element is ClassB, not foo.

Is there a way to make classB inherite from classA's
XmlRoot attribute?

thank you
fred
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top