示例#1
0
        public override int GetHashCode()
        {
            int hashBookId = BookId.GetHashCode();
            int hashUserId = UserId.GetHashCode();

            return(hashBookId ^ hashUserId);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hashCode = -437730420;

            hashCode = hashCode * -1521134295 + BookId.GetHashCode();
            hashCode = hashCode * -1521134295 + ChapterId.GetHashCode();
            return(hashCode);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (BookId != null ? BookId.GetHashCode() : 0);
         result = (result * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         result = (result * 397) ^ (Author != null ? Author.GetHashCode() : 0);
         result = (result * 397) ^ (Publication != null ? Publication.GetHashCode() : 0);
         result = (result * 397) ^ (Date != null ? Date.GetHashCode() : 0);
         return(result);
     }
 }
示例#4
0
 public override int GetHashCode()
 {
     return(LibraryId.GetHashCode() + BookId.GetHashCode());
 }
示例#5
0
 public override int GetHashCode()
 {
     return(BookId.GetHashCode());
 }
示例#6
0
 public override int GetHashCode()
 {
     return(AccountId.GetHashCode() + BookId.GetHashCode());
 }
示例#7
0
 public override int GetHashCode()
 {
     return(-1590218067 + BookId.GetHashCode());
 }