Exemplo n.º 1
0
        public bool Include(ICustomAttribute attribute)
        {
            string typeId       = attribute.DocId();
            string removeUsages = "RemoveUsages:" + typeId;

            // special case: attribute usage can be removed without removing
            //               the attribute itself
            if (_docIds.Contains(removeUsages))
            {
                return(false);
            }

            if (_excludeMembers)
            {
                foreach (var argument in attribute.Arguments)
                {
                    // if the argument is an excluded type
                    if (!IncludeTypeReference(argument.Type))
                    {
                        return(false);
                    }

                    // if the argument is typeof of an excluded type
                    IMetadataTypeOf typeOf = argument as IMetadataTypeOf;
                    if (typeOf != null && !IncludeTypeReference(typeOf.TypeToGet))
                    {
                        return(false);
                    }
                }
            }

            // include so long as it isn't in the exclude list.
            return(!_docIds.Contains(typeId));
        }
        public override bool Include(ICustomAttribute attribute)
        {
            if (_attributeDocIds.Contains(attribute.DocId()))
                return false;

            return base.Include(attribute);
        }
        public override bool Include(ICustomAttribute attribute)
        {
            if (_attributeDocIds.Contains(attribute.DocId()))
            {
                return(false);
            }

            return(base.Include(attribute));
        }
Exemplo n.º 4
0
        public bool Include(ICustomAttribute attribute)
        {
            string typeId = attribute.DocId();
            string removeUsages = "RemoveUsages:" + typeId;

            if (_docIds.Contains(removeUsages))
                return false;

            return _docIds.Contains(typeId);
        }
        public bool Include(ICustomAttribute attribute)
        {
            string typeId       = attribute.DocId();
            string removeUsages = "RemoveUsages:" + typeId;

            if (_docIds.Contains(removeUsages))
            {
                return(false);
            }

            return(_docIds.Contains(typeId));
        }
Exemplo n.º 6
0
        public bool Include(ICustomAttribute attribute)
        {
            string typeId = attribute.DocId();
            string removeUsages = "RemoveUsages:" + typeId;

            // special case: attribute usage can be removed without removing 
            //               the attribute itself
            if (_docIds.Contains(removeUsages))
                return false;

            // include so long as it isn't in the exclude list.
            return !_docIds.Contains(typeId);
        }
        public bool Include(ICustomAttribute attribute)
        {
            string typeId       = attribute.DocId();
            string removeUsages = "RemoveUsages:" + typeId;

            // special case: attribute usage can be removed without removing
            //               the attribute itself
            if (_docIds.Contains(removeUsages))
            {
                return(false);
            }

            // include so long as it isn't in the exclude list.
            return(!_docIds.Contains(typeId));
        }
 public bool Include(ICustomAttribute attribute)
 {
     return(!_attributeDocIds.Contains(attribute.DocId()));
 }