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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Please explain the difference between constants and read-only variables?

508


Whate are resource files?

590


what is dotnet architecture? can anyone explain that.

3584


What is garbage collection in .net? Explain the garbage collection process?

547


What is managed code execution?

579






What makes .net core cross platform?

506


Describe the Managed Execution Process?

1993


State the differences between the dispose() and finalize().

575


Explain what does managed mean in the .net context?

480


Please tell us what is the difference between override and overload in a method?

538


How do you turn off cookies for one page in your site? Give an example.

474


What are the core differences between .NET Languages ?

1774


What is lazy initialization?

570


What is immutability?

546


Why did they call it .net?

566