您正在測試一個組件,該組件對Meeting 類實例進行序列化處理,以使它們能夠保存到文件系統(tǒng)。
Meeting具有如下定義:
public class Meeting {
private string title;
public int roomNumber;
public string[] invitees;
public Interview(){
}
public Interview (string t){
title = t;
} }
組件包含一個帶有以下代碼段的過程
Meeting myMeeting = new Meeting("Objectives");
myMeeting.roomNumber=20;
string[] attendees = new string[2]{"Amy", "Ally"};
myMeeting.invitees = attendees;
XmlSerializer xs = new XmlSerializer(typeof(Meeting));
StreamWriter writer = new StreamWriter(@"C:\Meeting.xml");
xs.Serialize(writer, myMeeting);
writer.Close();/
您需要確定作為運行此過程的結(jié)果寫入C:\Meeting.xml 文件的XML 塊。
哪個XML 塊代表將寫入C:\Meeting.xml 文件的內(nèi)容?()