public override int GetHashCode()
        {
            var hashCode = 1724739372;

            hashCode = hashCode * -1521134295 + IdDoctor.GetHashCode();
            hashCode = hashCode * -1521134295 + IdClinic.GetHashCode();
            hashCode = hashCode * -1521134295 + Since.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (PatientId != null)
         {
             hashCode = hashCode * 59 + PatientId.GetHashCode();
         }
         if (Since != null)
         {
             hashCode = hashCode * 59 + Since.GetHashCode();
         }
         if (Estimated != null)
         {
             hashCode = hashCode * 59 + Estimated.GetHashCode();
         }
         if (EstimatedDurationMinutes != null)
         {
             hashCode = hashCode * 59 + EstimatedDurationMinutes.GetHashCode();
         }
         if (Condition != null)
         {
             hashCode = hashCode * 59 + Condition.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(Ascending.GetHashCode() ^ (Labels != null ? Labels.GetHashCode() : 0) ^ Open.GetHashCode() ^ Since.GetHashCode() ^ SortType.GetHashCode() ^ (Mentioned != null ? Mentioned.GetHashCode() : 0) ^ (Creator != null ? Creator.GetHashCode() : 0) ^ (Assignee != null ? Assignee.GetHashCode() : 0) ^ (Milestone != null ? Milestone.GetHashCode() : 0));
     }
 }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            int shift = 4;

            return(shift * Since.GetHashCode() * Till.GetHashCode());
        }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(Ascending.GetHashCode() ^ (Labels != null ? Labels.GetHashCode() : 0) ^ FilterType.GetHashCode() ^ Open.GetHashCode() ^ Since.GetHashCode() ^ SortType.GetHashCode());
     }
 }
Exemplo n.º 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasID)
            {
                hash ^= ID.GetHashCode();
            }
            if (HasMethod)
            {
                hash ^= Method.GetHashCode();
            }
            if (HasPath)
            {
                hash ^= Path.GetHashCode();
            }
            if (HasVal)
            {
                hash ^= Val.GetHashCode();
            }
            if (HasDir)
            {
                hash ^= Dir.GetHashCode();
            }
            if (HasPrevValue)
            {
                hash ^= PrevValue.GetHashCode();
            }
            if (HasPrevIndex)
            {
                hash ^= PrevIndex.GetHashCode();
            }
            if (HasPrevExist)
            {
                hash ^= PrevExist.GetHashCode();
            }
            if (HasExpiration)
            {
                hash ^= Expiration.GetHashCode();
            }
            if (HasWait)
            {
                hash ^= Wait.GetHashCode();
            }
            if (HasSince)
            {
                hash ^= Since.GetHashCode();
            }
            if (HasRecursive)
            {
                hash ^= Recursive.GetHashCode();
            }
            if (HasSorted)
            {
                hash ^= Sorted.GetHashCode();
            }
            if (HasQuorum)
            {
                hash ^= Quorum.GetHashCode();
            }
            if (HasTime)
            {
                hash ^= Time.GetHashCode();
            }
            if (HasStream)
            {
                hash ^= Stream.GetHashCode();
            }
            if (HasRefresh)
            {
                hash ^= Refresh.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }