Data Contract Serialization Events in WCF

In WCF we use the DataContract to serialize and deserialize the custom data. Sometime you may come across a scenario do some work before or after the data gets serialized or deserialized. These are following four events provided on the DataContract. You are free to give any method name provided method should return void and … Continue reading Data Contract Serialization Events in WCF

Data Contract Hierarchy in WCF

Objective  This article will explain Data Contract hierarchy How base class and sub class are getting exposed in WCF? What is Known Type attribute Mixing of sterilization and Data Contract Data Contract Hierarchy   If any class in hierarchy is not attributed as [DataContract] or [serilizable] then InvalidDataContractException will occur at service run time  WCF … Continue reading Data Contract Hierarchy in WCF