1

In C# .NET there is two main possibilities to serialize and object.

  1. Implementing the ISerializable interface?
  2. Using the [DataContract/DataMember] serialization attribute of WCF?

What are the differences of this two possibilities and what is the better in term of execution time.

  • You mean their performance comparison in WCF services? Because otherwise I don't know how to use WCF serialization engine in non-WCF application, and even if is possible I doubt that it is the recommended way of getting things done. – Eugene Podskal Jul 30 '14 at 7:07
  • So ISerializable is primarily used if you want to do special extensions of serialization, otherwise you can get at least binary serialization more "out of the box". See the nice MSDN page on serialization here. – J Trana Aug 15 '14 at 5:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.