开发者

Send a List<Interface> as WCF method parameter

How can I send a generic list of the type of an interface to a WCF m开发者_如何学Cethod? the problem I have is that the client generated the list as List<object> instead of using the interface.


That's probably because the client doesn't know what implementations exist for this interface as they are not part of the exposed metadata. You could use known types to include those possible implementation in the WSDL.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜