public override int GetHashCode()
 {
     unchecked
     {
         return((Chapter.GetHashCode() * 397) ^ PageNumber);
     }
 }
        public override int GetHashCode()
        {
            var hashCode = 1671737298;

            hashCode = hashCode * -1521134295 + Chapter.GetHashCode();
            hashCode = hashCode * -1521134295 + Verse.GetHashCode();
            return(hashCode);
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 31 + Order.GetHashCode();
            hash = hash * 31 + Chapter.GetHashCode();
            hash = (PartialCode == null) ? 0 : hash * 31 + PartialCode.GetHashCode();
            hash = hash * 31 + Active.GetHashCode();

            return(hash);
        }
Esempio n. 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ (Chapter != null ? Chapter.GetHashCode() : 0);
         result = (result * 397) ^ ChapterOrder;
         result = (result * 397) ^ (Caption != null ? Caption.GetHashCode() : 0);
         result = (result * 397) ^ CaptionOrder;
         result = (result * 397) ^ (Content != null ? Content.GetHashCode() : 0);
         result = (result * 397) ^ Order;
         return(result);
     }
 }
Esempio n. 5
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hash = 17;

                if (Book != null)
                {
                    hash = hash * 23 + Book.GetHashCode();
                }

                hash = hash * 23 + Chapter.GetHashCode();

                if (Verses != null)
                {
                    foreach (int verse in Verses)
                    {
                        hash = hash * 23 + verse.GetHashCode();
                    }
                }

                return(hash);
            }
        }
Esempio n. 6
0
 public override int GetHashCode()
 {
     return(Chapter.GetHashCode() + Level.GetHashCode());
 }