示例#1
0
        private void CalculateHash()
        {
            int myHash = UseSsl.GetHashCode();

            myHash ^= Port.GetHashCode();

            //since we are comparing without case we need to get rid of hash code variations by case.
            if (HostName != null)
            {
                myHash ^= HostName.ToLowerInvariant().GetHashCode();                   // Fold in hash code for string
            }
            m_HashCode = myHash;
        }