I have some class that I\'m passing as a result of a service method, and that class has a get-only property:
[DataContract]
public class ErrorBase
{
[DataM
If it's a viable option, then instead of having ErrorBase as the base class, define it as follows:
public interface IError
{
string Message
{
[OperationContract]
get;
// leave unattributed
set;
}
}
Now, even though a setter exists, it's inaccessible to the client via WCF channel, so it's as if it were private.