Esempio n. 1
0
        public override int GetHashCode()
        {
            var hashCode = 944434587;

            hashCode = hashCode * -1521134295 + CommunityId.GetHashCode();
            hashCode = hashCode * -1521134295 + DistrictId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            return(hashCode);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            var hashCode = 1213410472;

            hashCode = hashCode * -1521134295 + DistrictId.GetHashCode();
            hashCode = hashCode * -1521134295 + ProvinceId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            return(hashCode);
        }
Esempio n. 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = DistrictId.GetHashCode();
         result = (result * 397) ^ AgeId.GetHashCode();
         result = (result * 397) ^ SexId.GetHashCode();
         result = (result * 397) ^ JobId.GetHashCode();
         return(result);
     }
 }
Esempio n. 4
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 + ReportDate.GetHashCode();
                hash = hash * 59 + Title.GetHashCode();
                hash = hash * 59 + DistrictId.GetHashCode();
                hash = hash * 59 + MinistryDistrictId.GetHashCode();
                hash = hash * 59 + DistrictName.GetHashCode();
                hash = hash * 59 + DistrictAddress.GetHashCode();
                hash = hash * 59 + DistrictContact.GetHashCode();
                hash = hash * 59 + Owners.GetHashCode();

                return(hash);
            }
        }