I have class A which has ISerializable implemented for custom serialization. Now i need to pass around this class A in WCF.
I want to use DataContractSerializer for WCF serialization not my custom serialization.
WCF would not allow it, it does not allow [DataContract] atribute if class has ISerializable implemented.
How can i use DataContractSerializer(For WCF) and ISerializer(For Persistance) on same class?
As is mentioned in the comments, you cannot have both serialization methods.
If you:
and server projects.
Then it should work, unless there is something special with respect to how the custom serialization is implemented.