示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (RetCode != 0)
            {
                hash ^= RetCode.GetHashCode();
            }
            if (RetDesc.Length != 0)
            {
                hash ^= RetDesc.GetHashCode();
            }
            hash ^= holidays_.GetHashCode();
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (RetCode != 0)
            {
                hash ^= RetCode.GetHashCode();
            }
            if (RetDesc.Length != 0)
            {
                hash ^= RetDesc.GetHashCode();
            }
            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            return(hash);
        }
示例#3
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;
                if (RetCode != null)
                {
                    hashCode = hashCode * 59 + RetCode.GetHashCode();
                }

                if (RetMsg != null)
                {
                    hashCode = hashCode * 59 + RetMsg.GetHashCode();
                }

                if (ExtCode != null)
                {
                    hashCode = hashCode * 59 + ExtCode.GetHashCode();
                }

                if (ExtInfo != null)
                {
                    hashCode = hashCode * 59 + ExtInfo.GetHashCode();
                }

                if (Result != null)
                {
                    hashCode = hashCode * 59 + Result.GetHashCode();
                }

                if (TimeNow != null)
                {
                    hashCode = hashCode * 59 + TimeNow.GetHashCode();
                }

                return(hashCode);
            }
        }