示例#1
0
 public override bool Equals(object obj)
 {
     return(obj is ReviewModelForResponse response &&
            Score == response.Score &&
            Description.Equals(response.Description) &&
            NameOfWhoComments.Equals(response.NameOfWhoComments) &&
            LastNameOfWhoComments.Equals(response.LastNameOfWhoComments));
 }
示例#2
0
 public override bool Equals(object obj)
 {
     return(obj is Review review &&
            Id == review.Id &&
            Description.Equals(review.Description) &&
            Score == review.Score &&
            NameOfWhoComments.Equals(review.NameOfWhoComments) &&
            LastNameOfWhoComments.Equals(review.LastNameOfWhoComments) &&
            IdOfReserve == review.IdOfReserve);
 }