public object Clone() { TesterWrokSchedule copy = new TesterWrokSchedule(); copy.DoesWork = this.DoesWork; for (int i = 0; i < this.Available.Count(); i++) { copy.Available.Add(this.Available.Keys[i], this.Available.Values[i]); } return(copy); }
public object Clone() { TesterWrokSchedule[,] copy = new TesterWrokSchedule[6, 5]; for (int k = 0; k < 6; k++) { for (int t = 0; t < 5; t++) { copy[k, t] = new TesterWrokSchedule(); } } for (int k = 0; k < 6; k++) { for (int t = 0; t < 5; t++) { copy[k, t].DoesWork = this.MatrixTesterworkdays[k, t].DoesWork; if (this.MatrixTesterworkdays[k, t].Available != null) { copy[k, t].Clone(); } } } return(copy); }