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

            var otherTyped = other as ConstructedGenericTypeData;

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

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

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

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

            return(true);
        }