Good day!

How to produce object serialization correctly? It is supposed to implement a nice method of saving the application settings in xml format. Now done clumsily through xmlwriter file is overwritten when you close the application.

Saw in examples of the code attributes serizable and other, for certain something useful. Tell us how to organize the logic in the code, where to read buzz words on this topic?

Thank.

    1 answer 1

    The authors say this: Examples of XML serialization

    XML serialization can take several forms, from simple to complex. For example, you can serialize a class that consists only of open fields and properties, as shown in the Introduction to XML serialization section. The following code examples show various complex scenarios, including how to use XML serialization to create an XML stream corresponding to a specific XML Schema Document (XSD).