System.Reflection.Emit.SignatureHelper.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj) { throw null; }
        public static System.Reflection.Emit.SignatureHelper GetFieldSigHelper(System.Reflection.Module mod) { throw null; }

Usage Example

        /**********************************************
        * 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);
        }