You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating an application using the .NET Framework. The application contains a class named globalInfo. You need to serialize all public and nonpublic data of the globalInfo class to ensure that the class generates the minimum byte stream so that the minimum load is placed upon network resources.
What will you do?
A . Use the XmlSerializer class.
B . Use the BinaryFormatter class.
C . Use the SoapFormatter class.
D . Use the IXmlSerializable interface.
Answer: B