When applied to a class Serializable attribute serializes everything inside of it including private fields thus the developer has no control as what to expose.
When DataContract attribute is applied to a class it will serialize only the elements decorated with DataMember attribute thus the developer will have more control.
0 comments:
Post a Comment