Exemple #1
0
        public override bool Equals(object obj)
        {
            userBookDto Right = obj as userBookDto;

            if (Right == null)
            {
                return(false);
            }

            if (this.GetType() != Right.GetType())
            {
                return(false);
            }

            if (Object.ReferenceEquals(this, Right))
            {
                return(true);
            }

            return(this.bookId == Right.bookId);
        }
Exemple #2
0
 public int GetHashCode(userBookDto obj)
 {
     return(obj.bookId);
 }