Ejemplo n.º 1
0
 public override string ToString()
 {
     return(Exemplaire.ToString()
            + " | Date Emprunt : " + DateEmprunt.ToShortDateString()
            + " | Date Retour : " + (DateRetour == DateTime.MinValue ?
                                     "?" : DateRetour.ToShortDateString()));
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            var hashCode = -28161095;

            hashCode = hashCode * -1521134295 + CodeLivre.GetHashCode();
            hashCode = hashCode * -1521134295 + IdAdhérent.GetHashCode();
            hashCode = hashCode * -1521134295 + DateEmprunt.GetHashCode();
            return(hashCode);
        }