多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You create a class library that contains the class hierarchy defined in the following code segment. (Line numbers are included for reference only.) You create an instance of the Group class. You populate the fields of the instance. When you attempt to serialize the instance by using the Serialize method of the XmlSerializer class, you receive InvalidOperationException. You also receive the following error message: "There was an error generating the XML document."You need to modify the code segment so that you can successfully serialize instances of the Group class by using the XmlSerializer class. You also need to ensure that the XML output contains an element for all public fields in the class hierarchy. What should you do?()

  • A、A
  • B、B
  • C、C
  • D、D
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题