Beispiel #1
0
        internal override bool DoesMatch(MetadataItemBase other)
        {
            if (base.DoesMatch(other) == false)
            {
                return(false);
            }

            var otherTyped = other as MethodData;

            if (otherTyped == null)
            {
                return(false);
            }

            if (GenericParameters.DoesMatch(otherTyped.GenericParameters) == false)
            {
                return(false);
            }

            if (IsExtensionMethod != otherTyped.IsExtensionMethod)
            {
                return(false);
            }

            return(true);
        }
Beispiel #2
0
        internal override bool DoesMatch(MetadataItemBase other)
        {
            if (base.DoesMatch(other) == false)
            {
                return(false);
            }

            var otherTyped = other as TypeDefinitionData;

            if (otherTyped == null)
            {
                return(false);
            }

            if (FullName != otherTyped.FullName)
            {
                return(false);
            }

            if (GenericParameters.DoesMatch(otherTyped.GenericParameters) == false)
            {
                return(false);
            }

            if (NameForComparison != otherTyped.NameForComparison)
            {
                return(false);
            }

            if (OldName != otherTyped.OldName)
            {
                return(false);
            }

            if (TypeDefinitionFlags != otherTyped.TypeDefinitionFlags)
            {
                return(false);
            }

            return(true);
        }