开发者

How to Define method in DataContract class

开发者 https://www.devze.com 2023-02-21 11:40 出处:网络
I want to add some method in class that i开发者_开发知识库 define as a \'DataContract\' class.

I want to add some method in class that i开发者_开发知识库 define as a 'DataContract' class. I need that the client will call those method in some cases.

Is it possible? How can i do it ?

Thanks for any help.


If you mean that you want to add a service call to a DataContract then that is not possible. If you want to add some helper methods to the data contract and you want to make those available to the client as well then you can do that if you are also in charge of the client code or you are willing to share the library containing the data contract class with the clients.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号