/// <summary> /// 复制构造函数 /// </summary> /// <param name="other"></param> public ClassSubjectSetting(ClassSubjectSetting other) { this.SubjectName = other.SubjectName; this.TeacherID = other.TeacherID; this.LessonsPerWeek = other.LessonsPerWeek; this.Master = other.Master; this.Level = other.Level; this.Minor = other.Minor; this.Assigned = other.Assigned; }
public ClassSubjectSetting DeepClone() { ClassSubjectSetting css = new ClassSubjectSetting(SubjectName, TeacherID, LessonsPerWeek, Master, Level, Minor, Assigned); return(css); }