Showing posts with label Integration. Show all posts
Showing posts with label Integration. Show all posts

Wednesday, March 05, 2008

Expose Readonly public property of DataContract in WCF

To expose readonly property in WCF using DataContract, add DataMember to the private property

[DataMember]
private string name;

public string Name
{
get{ return name;}
}