System.Reflection.Emit.ModuleBuilder.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( ) : int
return int
        public override int GetHashCode() { throw null; }
        public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute) { }

Usage Example

Esempio n. 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);
        }