Exemple #1
0
        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));
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            var disciplina = (Disciplina)obj;

            if (disciplina != null)
            {
                return(Nume.Equals(disciplina.Nume));
            }
            return(false);
        }
Exemple #3
0
        public override bool Equals(object obj)
        {
            var laborator = (Laborator)obj;

            if (laborator != null)
            {
                return(Nume.Equals(laborator.Nume));
            }
            return(false);
        }
Exemple #4
0
        public override bool Equals(object obj)
        {
            var curs = (Curs)obj;

            if (curs != null)
            {
                return(Nume.Equals(curs.Nume));
            }
            return(false);
        }
Exemple #5
0
        public override bool Equals(object obj)
        {
            var workshop = (Workshop)obj;

            if (workshop != null)
            {
                return(Nume.Equals(workshop.Nume));
            }
            return(false);
        }
Exemple #6
0
        public override bool Equals(object obj)
        {
            var fur = (Furnizor)obj;

            if (fur != null)
            {
                return(Nume.Equals(fur.Nume));
            }
            return(false);
        }
Exemple #7
0
        public override bool Equals(object obj)
        {
            var medicament = (Medicament)obj;

            if (medicament != null)
            {
                return(Nume.Equals(medicament.Nume));
            }
            return(false);
        }
Exemple #8
0
        public override bool Equals(object obj)
        {
            var training = (Training)obj;

            if (training != null)
            {
                return(Nume.Equals(training.Nume));
            }
            return(false);
        }
Exemple #9
0
        public override bool Equals(object obj)
        {
            var volunteer = (Volunteer)obj;

            return(Nume.Equals(volunteer.Nume) && Id.Equals(volunteer.Id));
        }