コード例 #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));
        }
コード例 #2
0
        public override bool Include(ICustomAttribute attribute)
        {
            if (_attributeDocIds.Contains(attribute.DocId()))
                return false;

            return base.Include(attribute);
        }
コード例 #3
0
        public override bool Include(ICustomAttribute attribute)
        {
            if (_attributeDocIds.Contains(attribute.DocId()))
            {
                return(false);
            }

            return(base.Include(attribute));
        }
コード例 #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);
        }
コード例 #5
0
        public bool Include(ICustomAttribute attribute)
        {
            string typeId       = attribute.DocId();
            string removeUsages = "RemoveUsages:" + typeId;

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

            return(_docIds.Contains(typeId));
        }
コード例 #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);
        }
コード例 #7
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));
        }
コード例 #8
0
 public bool Include(ICustomAttribute attribute)
 {
     return(!_attributeDocIds.Contains(attribute.DocId()));
 }