ProgrammerGuide.Net | Step by Step Programmer Guide

How To Use Struct in WCF as a DataContract ? Using Struct as a DataContract in WCF? | WCF Interview Question

An example of using struct as a DataContract is given below

[DataContract]

struct EmployeeInfo

{

[DataMember]

public int id;



[DataMember]

public string name;



[DataMember]

public DateTime joining_date;

}
Please click here for related products on Amazon!

Jayashee

Add comment

Want to Check Celebrities News?