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

微软认证考试

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

You are testing a component that serializes the Meeting class instances so that they can be saved to the file system. The Meeting class has the following definition: The component contains a procedure with the following code segment.  Meeting myMeeting = new Meeting("Goals");  myMeeting.roomNumber=1100;  string[] attendees = new string[2]{"John", "Mary"};  myMeeting.invitees = attendees;  XmlSerializer xs = new XmlSerializer(typeof(Meeting));  StreamWriter writer = new StreamWriter(@"C:///Meeting.xml");  xs.Serialize(writer, myMeeting);  writer.Close(); You need to identify the XML block that is written to the C:///Meeting.xml file as a result of running this procedure.Which XML block represents the content that will be written to the C:///Meeting.xml file?()

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

微信扫一扫手机做题