Click below for Step by Step and Interview Q & A (dotnetinter) wrote,
Click below for Step by Step and Interview Q & A

.NET interview questions: - Scenarios where serialization is used? Binary or XML serialization.

.NET interview questions: - In which scenarios we can use serialization and when to use what binary serialization or XML serialization?

Below are some scenarios where serialization is needed: -

  • Passing .NET objects across network. For example .NET remoting, web services or WCF services use serialization internally.

  • Copy paste .NET objects on clip board.

  • Saving old state of the object and reverting back when needed. For example when the user hits the cancel button you would like to revert back to the previous state.

Following are the uses of binary serialization as compared to XML serialization

  • Binary is smaller in size, so faster to send across network and also faster to process.

  • XML is more verbose, but easy to understand and human readable. But due to the XMLstructure its complex to parse and can impact performance.


Also see following .NET interview questions videos debug directive in C#:  -

Tags: .net, .net interview questions, binary serialization, c#, csharp interview questions, it interview questions, programming interview questions, remoting, web services, xml serialization

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded