What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 geographical information system for the company and create a class named Certkiller Code.
You are required to serialize all public and non-public data of the Certkiller Code class whilst you ensure that you produce the smallest byte stream
so that the smallest load is placed upon network resources.
What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 geographical information system for the company and create a class named Certkiller Code.
You are required to serialize all public and non-public data of the Certkiller Code class whilst you ensure that you produce the smallest byte stream
so that the smallest load is placed upon network resources.
What should you do?

A.
The XmlSerializationWriter class should be used

B.
The XmlSerializer class should be used

C.
The BinaryFormatter class should be used

D.
The SoapFormatter class should be used

Explanation:
To successfully serialize all the public and non-public data you should make use of the BinaryFormatter class because in addition the BinaryFormatter class produces the most compact byte stream compared to other serialization classes.
Incorrect Answers:
A, B: The XmlSerializer class should not be used as this class only serializes public properties and fields and the XmlSerializationWriter class is used to controls serialization by using the XmkSerialization class and fails to meet requirements.
D: The SoapFormatter class could be used as it will allow you to serialize public and non-public data but the result of the stream will be a verbose and will consume more network resources.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


networkmanagers

networkmanagers

I have the same idea. C