Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ArtistName != null ? ArtistName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateOfShow.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 protected bool Equals(Show other)
 {
     return(Id == other.Id || (ArtistName == other.ArtistName && DateOfShow.Equals(other.DateOfShow)));
 }