WP7 - A DataContractSerializer Bug ?

As we saw in the previous article the DataContractSerializer is able to serialize and deserialize class hierarchies, let’s review the example again: [DataContract] public class Entity { public int M1; [DataMember] public string P1 { get; s


WP7 - Understanding Serialization

While I was learning and writing my first WP7 application I realized that understanding the serialization mechanism is vital if you want to write a WP7 application. You will probably end up using it when persisting data to the isolated storage and (i


NHibernate/SqlServer: persist a generic ‘serializable’ object to an XML field

Recently we had the problem of persisting some sort of extended data attached to a business object with the schema and the data of these extended information that can vary over time (usually with an additive strategy). Since we do not need to d...


Deep Clone of a business object: the quick and dirty way

I was implementing the IEditableObject interface for some entity classes in my current project and I needed a quick and dirty way to do the deep clone of an object, since my entity classes are shared between WCF, WPF and Silverlight (yes I’m on...