This project is read-only.

The page has been moved to GitHub

DataContractSerialization

Package: MyToolkit.Extended
Platforms: WP7SL, WP8SL, WinRT(Universal)

Used to serialize and deserialize an object using the DataContract serializer.

var person = new Person();
...
var xml = DataContractSerialization.Serialize(person);
var person2 = DataContractSerialization.Deserialize<Person>(xml);

Note: Use the BCL .NET DataContract and DataMember attributes to control the serialization process.

Additional methods:
  • SerializeAsync
  • DeserializeAsync
See also XmlSerialization

Last edited Jun 3, 2015 at 11:01 PM by rsuter, version 6