In WCF, can a struct be used as a DataContract ?

 Posted by Akiii on 4/10/2012 | Category: WCF Interview questions | Views: 8065 | Points: 40

Yes, a struct can be used as a DataContract. For example :-


struct EmployeeInfo
public int id;

public string name;

public DateTime joining_date;

Thanks and Regards

| Alert Moderator 

Comments or Responses

Login to post response