/// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();

                if (RentalAgreement != null)
                {
                    hash = hash * 59 + RentalAgreement.GetHashCode();
                }

                if (ConditionName != null)
                {
                    hash = hash * 59 + ConditionName.GetHashCode();
                }

                if (Comment != null)
                {
                    hash = hash * 59 + Comment.GetHashCode();
                }

                return(hash);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();

                if (RentalAgreement != null)
                {
                    hash = hash * 59 + RentalAgreement.GetHashCode();
                }

                hash = hash * 59 + IsIncludedInTotal.GetHashCode();

                if (ComponentName != null)
                {
                    hash = hash * 59 + ComponentName.GetHashCode();
                }

                if (IsAttachment != null)
                {
                    hash = hash * 59 + IsAttachment.GetHashCode();
                }

                if (Rate != null)
                {
                    hash = hash * 59 + Rate.GetHashCode();
                }

                if (PercentOfEquipmentRate != null)
                {
                    hash = hash * 59 + PercentOfEquipmentRate.GetHashCode();
                }

                if (RatePeriod != null)
                {
                    hash = hash * 59 + RatePeriod.GetHashCode();
                }

                if (Comment != null)
                {
                    hash = hash * 59 + Comment.GetHashCode();
                }

                if (TimeRecords != null)
                {
                    hash = hash * 59 + TimeRecords.GetHashCode();
                }
                return(hash);
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();

                if (RentalAgreement != null)
                {
                    hash = hash * 59 + RentalAgreement.GetHashCode();
                }

                hash = hash * 59 + WorkedDate.GetHashCode();

                if (Hours != null)
                {
                    hash = hash * 59 + Hours.GetHashCode();
                }

                if (RentalAgreementRate != null)
                {
                    hash = hash * 59 + RentalAgreementRate.GetHashCode();
                }

                if (EnteredDate != null)
                {
                    hash = hash * 59 + EnteredDate.GetHashCode();
                }

                if (TimePeriod != null)
                {
                    hash = hash * 59 + TimePeriod.GetHashCode();
                }

                return(hash);
            }
        }
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();
                hash = hash * 59 + RotationListSortOrder.GetHashCode();

                if (Equipment != null)
                {
                    hash = hash * 59 + Equipment.GetHashCode();
                }
                if (RentalAgreement != null)
                {
                    hash = hash * 59 + RentalAgreement.GetHashCode();
                }

                if (IsForceHire != null)
                {
                    hash = hash * 59 + IsForceHire.GetHashCode();
                }

                if (WasAsked != null)
                {
                    hash = hash * 59 + WasAsked.GetHashCode();
                }

                if (AskedDateTime != null)
                {
                    hash = hash * 59 + AskedDateTime.GetHashCode();
                }

                if (OfferResponse != null)
                {
                    hash = hash * 59 + OfferResponse.GetHashCode();
                }

                if (OfferRefusalReason != null)
                {
                    hash = hash * 59 + OfferRefusalReason.GetHashCode();
                }

                if (OfferResponseDatetime != null)
                {
                    hash = hash * 59 + OfferResponseDatetime.GetHashCode();
                }

                if (OfferResponseNote != null)
                {
                    hash = hash * 59 + OfferResponseNote.GetHashCode();
                }

                if (Note != null)
                {
                    hash = hash * 59 + Note.GetHashCode();
                }

                return(hash);
            }
        }