User-1649082595 posted
Hi All,
I'm having a problem. I've a WCF service which has complex types defined in it. These complex types are not decorated with DataContract/DataMember attribute. My service returns object/collection of objects of these complex types to client.
The problem is that these complex types are getting exposed to my client even though those are not defined as DataContract.
What can be the possible reason behind this? Isn't it the default behavior of WCF that to expose any complex types the same needs to marked as DataContract or Is there any configuration that needs to be done.
Kindly help.