Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LibraryId.Length != 0)
            {
                hash ^= LibraryId.GetHashCode();
            }
            if (PageIndex != 0)
            {
                hash ^= PageIndex.GetHashCode();
            }
            if (PageSize != 0)
            {
                hash ^= PageSize.GetHashCode();
            }
            if (SearchText.Length != 0)
            {
                hash ^= SearchText.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((LibraryId.GetHashCode() * 397) ^ LibraryNumber.GetHashCode());
     }
 }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            int result = base.GetHashCode();

            result = (result * 397) ^ LibraryId.GetHashCode();
            result = (result * 397) ^ LibraryName.GetHashCode();
            result = (result * 397) ^ LibraryPicture.GetHashCode();
            result = (result * 397) ^ Title.GetHashCode();
            result = (result * 397) ^ Author.GetHashCode();
            result = (result * 397) ^ Isbn.GetHashCode();
            result = (result * 397) ^ PublishYear.GetHashCode();
            return(result);
        }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (int)LibraryType;
         hashCode = (hashCode * 397) ^ LibraryNumber.GetHashCode();
         hashCode = (hashCode * 397) ^ LibraryId.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UpdateFlags;
         hashCode = (hashCode * 397) ^ (AffectedElements?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (AffectedLibraries?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     return(LibraryId.GetHashCode() + BookId.GetHashCode());
 }