开发者

How to pass my own class using WCF?

开发者 https://www.devze.com 2023-03-04 19:04 出处:网络
I have simple WCF Service Application (based on this tutorial http://msdn.mi开发者_Python百科crosoft.com/en-us/library/ms734712.aspx ).

I have simple WCF Service Application (based on this tutorial http://msdn.mi开发者_Python百科crosoft.com/en-us/library/ms734712.aspx ).

Is it possible to write function that passes/returns my own class?


Yes, till the time your class is Serializable, you can pass it back. Recommended way is to use Data Contracts. See

  • Using Data Contracts
  • What's the point of a DataContract in WCF?
0

精彩评论

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