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
 
Back
Top