emd
emd

Reputation: 1223

XML Deserialization with Windows Phone

When creating a type to serialize/de-serialize into xml, what do I use in place of System.SerializableAttribute?

Upvotes: 1

Views: 1279

Answers (2)

Derek Lakin
Derek Lakin

Reputation: 16319

You don't need to apply any specific attributes in order to serialize/deserialize a class, you just need to have public read/write properties for those things that need to be serialized.

If you're looking at persistence for tombstoning, then you should definitely take a look at Kevin Marshall's WP7 Serialization blog post. To skip to the summary, the best performance on WP7 is by using binary serialization.

Upvotes: 1

John Saunders
John Saunders

Reputation: 161801

Just create public read/write properties.

Upvotes: 0

Related Questions