CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Sep 2006
    Posts
    199

    XML serialization doesn't capture base class elements

    I am using Xml serialization to serialize a class to an XML file. This works fine, except that instances of this class are derived from another class, and I need the base class variables to be written to the Xml file too.

    Both the class that gets serialized and the base class are marked as serializable.

    Is there a way to get this to work?

    thanks.

    Using .Net 3.5SP1
    Last edited by purpleflash; November 15th, 2009 at 10:21 AM. Reason: spelling

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured