Reputation: 880
I am trying to build an Exception Framework for my project. I know (and am comfortable) with marking my service objects as [DataContract]s and passing them back and forth. I have an Exception base class which inherits ISerializable and overwrites the GetObjectData. Can I send that object through a WCF service the same way I can do my DataContracts?
Upvotes: 4
Views: 170
Reputation: 16145
ISerializable should be fine as long as the field or property is a data member.
Upvotes: 1