public void WriteXml(XmlWriter writer) { writer.WriteString(Abbrevation); writer.WriteString(Year.ToString()); writer.WriteString(Semester.ToString()); writer.WriteString(NumberOfStudents.ToString()); writer.WriteString(StudyForm.ToString()); writer.WriteString(StudyType.ToString()); writer.WriteString(Language.ToString()); }
public override string ToString() { return(namn + " har " + NumberOfStudents.ToString() + " studenter. " + AntalClasser + " " + antalStudenterPerClass); }
public override string ToString() { string str = ""; str = "学院名称:" + Name + " 系数量:" + NumberOfDeparment.ToString() + " 全院学生人数:" + NumberOfStudents.ToString(); str = str + " 男同学人数:" + NumberOfBoy.ToString() + " 女同学人数:" + NumberOfGirl.ToString() + "\n"; return(str); }