Пример #1
0
 public bool Equals(Horario other)
 {
     try
     {
         return(Curso.Equals(other.Curso) &&
                Asignatura.Equals(other.Asignatura) &&
                HoraFinal.Equals(other.HoraFinal) &&
                HoraInicio.Equals(other.HoraInicio) &&
                Dia.Equals(other.Dia) &&
                Anyo.Equals(other.Anyo));
     }
     catch (Exception)
     {
         return(false);
     }
 }
Пример #2
0
 public bool Equals(Estudio other) => Curso.Equals(other.Curso) &&
 Alumno1.Equals(other.Alumno1) &&
 Anyo.Equals(other.Anyo);