Ichibann
Ichibann

Reputation: 4461

How to pass my own class using WCF?

I have simple WCF Service Application (based on this tutorial http://msdn.microsoft.com/en-us/library/ms734712.aspx ).

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

Upvotes: 2

Views: 1588

Answers (1)

YetAnotherUser
YetAnotherUser

Reputation: 9356

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

Upvotes: 3

Related Questions