试题详情
- 单项选择题 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
关注下方微信公众号,在线模考后查看
热门试题