/// <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 (PrActivityId != null)
         {
             hashCode = hashCode * 59 + PrActivityId.GetHashCode();
         }
         if (PrElapsedTime != null)
         {
             hashCode = hashCode * 59 + PrElapsedTime.GetHashCode();
         }
         if (PrDate != null)
         {
             hashCode = hashCode * 59 + PrDate.GetHashCode();
         }
         if (EffortCount != null)
         {
             hashCode = hashCode * 59 + EffortCount.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if SummaryPRSegmentEffort instances are equal
        /// </summary>
        /// <param name="other">Instance of SummaryPRSegmentEffort to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SummaryPRSegmentEffort other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     PrActivityId == other.PrActivityId ||
                     PrActivityId != null &&
                     PrActivityId.Equals(other.PrActivityId)
                     ) &&
                 (
                     PrElapsedTime == other.PrElapsedTime ||
                     PrElapsedTime != null &&
                     PrElapsedTime.Equals(other.PrElapsedTime)
                 ) &&
                 (
                     PrDate == other.PrDate ||
                     PrDate != null &&
                     PrDate.Equals(other.PrDate)
                 ) &&
                 (
                     EffortCount == other.EffortCount ||
                     EffortCount != null &&
                     EffortCount.Equals(other.EffortCount)
                 ));
        }