I'm writing WCF service and his client. I want to send/receive objects of my custom classes, between service and client.
I have 3 modules
- WCF service
- WCF client
- common class library
Both WCF service and client have references to common class library.
I don't want to mark all my class with DataContract attributes.
So, my question "Is DataContract attributes required for WCF?"
I use .NET 4 and netTcpBinding.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…