GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 142 Topic 15 Discussion

GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 142 Topic 15 Discussion

GSSP-NET-CSHARP Exam Topic 15 Question 142 Discussion:
Question #: 142
Topic #: 15

John works as a Software Developer for InfoTech Inc. He develops an application named

SerializeObj. He creates a custom class and wants to serialize its object. He also wants the object to be stored into an XML file named File1.xml. He writes the following code: public class Employees

{

public string EmpID;

public string EmpName;

public decimal Salary;

}

Which of the following code statements will John add in the application?


A.

XmlSerializer ObjectSerializer = new XmlSerializer(typeof(Employees), ObjectTypes);


B.

XmlSerializer ObjectSerializer = new XmlSerializer(typeof(Employees));


C.

XmlSerializer ObjectSerializer = new XmlSerializer(Employees);


D.

XmlSerializer ObjectSerializer = new XmlSerializer();


Get Premium GSSP-NET-CSHARP Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.