System.Reflection.RuntimePropertyInfo.EqualsSig C# (CSharp) Method

EqualsSig() private method

private EqualsSig ( RuntimePropertyInfo target ) : bool
target RuntimePropertyInfo
return bool
        internal bool EqualsSig(RuntimePropertyInfo target)
        {
            //@Asymmetry - Legacy policy is to remove duplicate properties, including hidden properties. 
            //             The comparison is done by name and by sig. The EqualsSig comparison is expensive 
            //             but forutnetly it is only called when an inherited property is hidden by name or
            //             when an interfaces declare properies with the same signature. 

            ASSERT.PRECONDITION(Name.Equals(target.Name));
            ASSERT.PRECONDITION(this != target);
            ASSERT.PRECONDITION(this.ReflectedType == target.ReflectedType);

            return Signature.DiffSigs(target.Signature);
        }
        #endregion