What is the use of Is Required Property in Data Contracts?

 Posted by Majith on 5/26/2011 | Category: WCF Interview questions | Views: 6587 | Points: 40

Data Contracts, is used to define Required or NonRequired data members. It can be done with a property named IsRequired on DataMember attribute.

public class test
public string NameIsMust;

public string Phone;


Source: msdn | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response