GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 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);
        }