GetHashCode() public method

public GetHashCode ( ) : int
return int
示例#1
0
        public override int GetHashCode()
        {
            // Start the hash code with the hash code of the module and the values of the member variables.
            int HashCode = m_module.GetHashCode() + m_currSig + m_sizeLoc;

            // Add one if the sig is done.
            if (m_sigDone)
            {
                HashCode += 1;
            }

            // Then add the hash code of all the arguments.
            for (int i = 0; i < m_currSig; i++)
            {
                HashCode += m_signature[i].GetHashCode();
            }

            return(HashCode);
        }