WCF : How to create a basic data contract for a class or structure

Declare that the type has a data contract by applying the DataContractAttribute attribute to the class.

Define the members (properties, fields, or events) that are serialized by applying the DataMemberAttribute attribute to each member. These members are called data members.

No comments:

Post a Comment