public override bool Equals(object obj) { if (obj == null) { return(false); } if (this.GetType() != obj.GetType()) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (this.GetHashCode() != obj.GetHashCode()) { return(false); } Persoana persoana = obj as Persoana; return(Nume.Equals(persoana.Nume) && Prenume.Equals(persoana.Prenume) && Email.Equals(persoana.Email) && Cetatenie.Equals(persoana.Cetatenie) && DataNastere.Equals(persoana.DataNastere) && NumarPasaport.Equals(persoana.NumarPasaport) && Telefon.Equals(persoana.Telefon) && CNP.Equals(persoana.CNP) && Sex.Equals(persoana.Sex)); }
public override bool Equals(object obj) { var disciplina = (Disciplina)obj; if (disciplina != null) { return(Nume.Equals(disciplina.Nume)); } return(false); }
public override bool Equals(object obj) { var laborator = (Laborator)obj; if (laborator != null) { return(Nume.Equals(laborator.Nume)); } return(false); }
public override bool Equals(object obj) { var curs = (Curs)obj; if (curs != null) { return(Nume.Equals(curs.Nume)); } return(false); }
public override bool Equals(object obj) { var workshop = (Workshop)obj; if (workshop != null) { return(Nume.Equals(workshop.Nume)); } return(false); }
public override bool Equals(object obj) { var fur = (Furnizor)obj; if (fur != null) { return(Nume.Equals(fur.Nume)); } return(false); }
public override bool Equals(object obj) { var medicament = (Medicament)obj; if (medicament != null) { return(Nume.Equals(medicament.Nume)); } return(false); }
public override bool Equals(object obj) { var training = (Training)obj; if (training != null) { return(Nume.Equals(training.Nume)); } return(false); }
public override bool Equals(object obj) { var volunteer = (Volunteer)obj; return(Nume.Equals(volunteer.Nume) && Id.Equals(volunteer.Id)); }