public ClassListLight Clone() { ClassListLight cll = new ClassListLight(); cll.Begin_lesson = this.Begin_lesson; cll.Period = this.Period; cll.Week = this.Week; //cll.Name = new string[this.Name.Length]; cll.Hash_day = this.Hash_day; cll.Hash_lesson = this.Hash_lesson; //for (int i = 0; i < this.Name.Length; i++) //{ // cll.Name[i] = new string(this.Name[i].ToCharArray());//Name[i].ToString(); //} return cll; }
public ClassListLight Clone() { ClassListLight cll = new ClassListLight(); cll.Begin_lesson = this.Begin_lesson; cll.Period = this.Period; cll.Week = this.Week; //cll.Name = new string[this.Name.Length]; cll.Hash_day = this.Hash_day; cll.Hash_lesson = this.Hash_lesson; //for (int i = 0; i < this.Name.Length; i++) //{ // cll.Name[i] = new string(this.Name[i].ToCharArray());//Name[i].ToString(); //} return(cll); }