题目内容
YouaretestingacomponentthatserializestheMeetingclassinstancessothattheycanbesavedtothefilesystem.TheMeetingclasshasthefollowingdefinition:
Thecomponentcontainsaprocedurewiththefollowingcodesegment.
MeetingmyMeeting=newMeeting("Goals");
myMeeting.roomNumber=1100;
string[]attendees=newstring[2]{"John","Mary"};
myMeeting.invitees=attendees;
XmlSerializerxs=newXmlSerializer(typeof(Meeting));
StreamWriterwriter=newStreamWriter(@"C:\Meeting.xml");
xs.Serialize(writer,myMeeting);
writer.Close();
YouneedtoidentifytheXMLblockthatiswrittentotheC:\Meeting.xmlfileasaresultofrunningthisprocedure.WhichXMLblockrepresentsthecontentthatwillbewrittentotheC:\Meeting.xmlfile?()
查看答案
搜索结果不匹配?点我反馈