Example #1
0
 /// <summary>
 /// Faz a comparação usando todos as propriedades da classe
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool Equals(IDado other)
 {
     if (other is Aula)
     {
         Aula aux = (Aula)other;
         if (!this.professor.GetNome().Equals(aux.GetProfessor().GetNome()))
         {
             return(false);
         }
         else if (!this.disciplina.GetNome().Equals(aux.GetDisciplina().GetNome()))
         {
             return(false);
         }
         return(true);
     }
     return(false);
 }