Beispiel #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            if (!(obj is Administrador))
            {
                return(false);
            }

            Administrador outro = (Administrador)obj;

            return(AdministradorId.Equals(outro.AdministradorId));
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     return(AdministradorId.GetHashCode());
 }