Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     return(Name.GetHashCode() ^ Genre.GetHashCode() ^ Studio.GetHashCode() ^ Director.GetHashCode() ^ Actor1.GetHashCode() ^ Actor2.GetHashCode() ^ Profit.GetHashCode());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Dėl pakeisto Equals metodo, pakeičiamas GetHashCode metodas
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(Name.GetHashCode() ^ Genre.GetHashCode() ^ Studio.GetHashCode() ^ Actor1.GetHashCode() ^ Actor2.GetHashCode() ^ StartDate.GetHashCode() ^ Episodes.GetHashCode() ^ EndDate.GetHashCode() ^ Airing.GetHashCode());
 }