private bool Equals(BookActivityId other) { if (ReferenceEquals(other, null)) return false; if (ReferenceEquals(this, other)) return true; return UserId == other.UserId && BookId == other.BookId; }
private bool Equals(BookActivityId other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(UserId == other.UserId && BookId == other.BookId); }