阅读背景:

WCF:没有设置公开只读DataMember属性?

来源:互联网 

I have a server side class which I make available on the client side through a [DataContract]. This class has a readonly field which I'd like to make available through a property. However, I'm unable to do so because it doesn't seem that I'm allowed to add a [DataMember] property without having both get and set. I have a server side class which I make availab




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: