public bool Equals(Day other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Level == other.Level && DayOfWeek == other.DayOfWeek && Elems.UnorderEquals(other.Elems)); }
public bool Equals(Lesson other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Level == other.Level && IsOnEvenWeek == other.IsOnEvenWeek && string.Equals(Discipline, other.Discipline) && string.Equals(Teacher, other.Teacher) && string.Equals(Place, other.Place) && BeginTime.Equals(other.BeginTime) && string.Equals(Notation, other.Notation) && Duration.Equals(other.Duration) && Elems.UnorderEquals(other.Elems)); }