Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • As an aside, normally xmlReader and xmlWriter would be used for instances of XmlReader and XmlWriter, not StringReader and StringWriter. Commented Aug 18, 2010 at 19:59
  • To solve this, I think we'll need to see the declaration of MyCustomClass, as well as the rest of the XML. Commented Aug 18, 2010 at 19:59
  • It is telling me I can't create an instance of the abstract class XmlWriter Commented Aug 18, 2010 at 20:01
  • My equivalent code works good. Can you serialize empty class? Then add some properties to it. Commented Aug 18, 2010 at 20:07
  • The MyCustomClass code is fairly long... it contains no attributes other then [Serializable] and its only property is a CustomObservableCollection (inherited from base ObservableCollection) of CustomObjects. Commented Aug 18, 2010 at 20:07