![]() XmlSerializer mySerializer = new XmlSerializer(typeof(MySerializableClass)) // To write to a file, create a StreamWriter object. Kristian Kjems wrote: This is the example from MSDN where an object is serialized to a filestream: MySerializableClass myObject = new MySerializableClass // Insert code to set properties and fields of the object.
0 Comments
Leave a Reply. |