WCF contract returning interface could cause serialization issue?

前端 未结 2 920
滥情空心
滥情空心 2020-12-15 13:06

I am trying to define a WCF contract that returns an interface, something like below:

[ServiceContract]
public interface IMyContracts
{
    [OperationContrac         


        
2条回答
  •  没有蜡笔的小新
    2020-12-15 13:23

    In this post, I go into details of how to make WCF work for receiving and returning derived classes and interfaces.

    http://codeonaboat.wordpress.com/2010/03/01/serializing-and-deserializing-derived-types-or-interfaces-in-wcf/

提交回复
热议问题