public static CourseTime FromString(string s) { CourseTime temp = new CourseTime(); string[] ts = s.Split('-'); temp.WeekDay = (DAYS)Convert.ToInt32(ts[0]); temp.DayTime = (TERM)Convert.ToInt32(ts[1]); return(temp); }
public override bool Equals(object obj) { CourseTime time = (CourseTime)obj; return(time.DayTime.Equals(DayTime) && time.WeekDay.Equals(WeekDay)); }