public override int GetHashCode() { return(Name.GetHashCode() ^ Genre.GetHashCode() ^ Studio.GetHashCode() ^ Director.GetHashCode() ^ Actor1.GetHashCode() ^ Actor2.GetHashCode() ^ Profit.GetHashCode()); }
/// <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()); }