WCF: Exposing readonly DataMember properties without set?

后端 未结 5 1708
粉色の甜心
粉色の甜心 2020-11-29 02:07

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 pr

5条回答
  •  一生所求
    2020-11-29 02:40

    Define the Service contract (Interface) Before implementing the contract using the class.

提交回复
热议问题