Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((HostAddress.GetHashCode() * 397) ^ StringComparer.InvariantCultureIgnoreCase.GetHashCode(UserName));
     }
 }
Esempio n. 2
0
        /// <summary>
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            unchecked
            {
                // ReSharper disable NonReadonlyMemberInGetHashCode
                var hashCode = HostAddress != null?HostAddress.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (UserId != null ? UserId.GetHashCode() : 0);
                //hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ MaxResult;
                hashCode = (hashCode * 397) ^ (ReportName != null ? ReportName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (CustomField1 != null ? CustomField1.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (CustomField2 != null ? CustomField2.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (CustomField3 != null ? CustomField3.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (CustomField4 != null ? CustomField4.GetHashCode() : 0);
                return(hashCode);
                // ReSharper restore NonReadonlyMemberInGetHashCode
            }
        }
Esempio n. 3
0
 public override int GetHashCode()
 {
     return(HostAddress.GetHashCode());
 }