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.

2
  • 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. Jul 30, 2014 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, 2014 at 5:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.