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



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

Answer / guest

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 containing
the class, are converted to a stream of bytes, which is
then written to a data stream. When the object is
subsequently deserialized, an exact clone of the original
object is created. o Binary serialization preserves type
fidelity, which is useful for preserving the state of an
object between different invocations of an application. For
example, you can share an object between different
applications by serializing it to the clipboard. You can
serialize an object to a stream, disk, memory, over the
network, and so forth. Remoting uses serialization to pass
objects ?by value? from one computer or application domain
to another. o XML serialization serializes only public
properties and fields and does not preserve type fidelity.
This is useful when you want to provide or consume data
without restricting the application that uses the data.
Because XML is an open standard, it is an attractive choice
for sharing data across the Web. SOAP is an open standard,
which makes it an attractive choice

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Dot Net General Interview Questions

Is .net capable of supporting multi-thread?

0 Answers  


Tell us the difference between managed and unmanaged code?

0 Answers  


Please explain what is a delegate?

0 Answers  


What does msil do?

0 Answers  


Is atl redundant in the .net world?

0 Answers  


How will you make .NET programs work in Linux ?

0 Answers  


Please explain what are an object and a class?

0 Answers  


What is DTS and explain the purpose of it?

0 Answers   ADITI,


DateTime[] dt = new DateTime[10] for(i=0; i<10; i++) { dt[i] = DateTime(2008, 1, i+1) } How many heap object will be created for the above array. Choose the correct answer below. Ans: 1, 10, 11, 12

3 Answers  


What is meant by localization?

0 Answers  


what is GAC?

1 Answers   Manhattan,


Difference between abstract class and interface in .net?

0 Answers  


Categories