單項選擇題

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

題目列表

你可能感興趣的試題

微信掃碼免費搜題