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?
精彩评论