C# Serialization Guide Part 7 – Known Types

Friday, May 2, 2014

A special attribute that can be added to any serialized object (where using DataContractSerialization) There is a few ways to demonstrate the knownType usage, i myself check out a few examples ..around the net and they where kind of so so ,In my example we will try to put inside a serialized object a referenced member of type Object .meaning not a final implementation .it is relevant when Either you writing a base service or not yet implement the reference object :The code structure may be like that public class MyData { public int PublicID {...
אין תגובות