Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        /**********************************************
        * Overriden from System.Object.
        * Returns true if Object represents a MethodBuilder of the same
        * name and signature as the current instance.
        *
        * @param obj The object against which to compare the current instance.
        **********************************************/
        /// <include file='doc\MethodBuilder.uex' path='docs/doc[@for="MethodBuilder.Equals"]/*' />
        public override bool Equals(Object obj)
        {
            if (!(obj is MethodBuilder))
            {
                return(false);
            }
            if (!(this.m_strName.Equals(((MethodBuilder)obj).m_strName)))
            {
                return(false);
            }

            if (m_iAttributes != (((MethodBuilder)obj).m_iAttributes))
            {
                return(false);
            }

            SignatureHelper thatSig = ((MethodBuilder)obj).m_signature;

            if (thatSig.Equals(m_signature))
            {
                return(true);
            }
            return(false);
        }