开发者

How to pass my own class using WCF?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜