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