What is serialization in .NET? What are the ways to control
serialization?

Answers were Sorted based on User's Feedback



What is serialization in .NET? What are the ways to control serialization?..

Answer / arijit mandal

Serialization is the process of converting an object into a
stream of bytes. On the other hand Deserialization is the
process of creating an object from a stream of bytes.
Serialization/Deserialization is used to transport or to
persist objects. Serialization can be defined as the
process of storing the state of an object to a storage
medium. During this process, the public and private fields
of the object and the name of the class, including the
assembly are converted to a stream of bytes. Which is then
written to a data stream. Upon the object's subsequent
deserialized, an exact clone of the original object is
created.

Is This Answer Correct ?    23 Yes 0 No

What is serialization in .NET? What are the ways to control serialization?..

Answer / ragesh

When developing smaller applications that do not have a
database (or other formal storage mechanism) or data that
doesn't need to be stored in a database (such as the state
of a web application), you often still would like to save
the data for later retrieval. There are many ways to do
this, but many of them are subject to a lot of extra code
(work) and extra time spent debugging. With .NET, there is
now an easy way to add this functionality to your code with
only a few lines of easily tested code. This easy way is
called serialization.

Is This Answer Correct ?    7 Yes 4 No

Post New Answer

More Dot Net Framework Interview Questions

what is Assemble

4 Answers   Microsoft,


explain how you can load related entities in ef (entity framework)?

0 Answers   Microsoft,


What is gacutil.exe. Where do we store assemblies ?

5 Answers   Accenture, BirlaSoft,


What is the use of view model in asp.net mvc?

0 Answers  


How to add 'ASPNET.mdf' file into server explorer in visual studio 2005?

2 Answers  






What is the difference b/w constant & read only variable?

4 Answers   IMI Soft Engineering,


Explain the 'page lifecycle' of an ASP.NET MVC?

0 Answers  


What is a serverside technology? what is a clientside technology? what is a clientserver technology? what is a internet based application? what is a intranet based application? what is a windows application? what is a console application? Difference between console application and windows application?

4 Answers   IBM,


How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?

0 Answers   MCN Solutions,


Can we access the web controls in a page pre initialising event?

2 Answers  


What is entitycontainer? : Entity framework

0 Answers  


What is viewbag?

0 Answers  


Categories