c# - MyType<T> DataContract is in the Silverlight client MyTypeOfT -


i have wcf service property<t> datacontract (with knowntype, et cetera...), in silverlight client have propertyofint, propertyofstring, ... types, need in silverlight generic type. how?

the soap standard doesn't support concept of generics not supported directly in wcf. however, can achieve this support if control both client , wcf service sharing servicecontract dll between client , service. make sure want since not recommended soa best practice.

here is article describes how approach works. sharing servicecontract (not service implementation dll) , using wcf channelfactory class not need generate proxy class since channelfactory class dynamically you. servicecontract assembly need contain referenced datamember marked classes main flaw of approach because logic contain shared. long datamember classes data transfer objects (dto) you're not bending soa tenents entirely out of shape. article explains how wcf clientbase class.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -