diff --git a/src/Microsoft.Cci.Extensions/Mappings/AttributesMapping.cs b/src/Microsoft.Cci.Extensions/Mappings/AttributesMapping.cs index 3017519f9b5..73be2d97f3f 100644 --- a/src/Microsoft.Cci.Extensions/Mappings/AttributesMapping.cs +++ b/src/Microsoft.Cci.Extensions/Mappings/AttributesMapping.cs @@ -64,11 +64,11 @@ protected virtual IEnumerable GetAttributes(T element) { IReference reference = element as IReference; if (reference != null) - return reference.Attributes; + return reference.Attributes.Where(Filter.Include); IEnumerable attributes = element as IEnumerable; if (attributes != null) - return attributes; + return attributes.Where(Filter.Include); return null; }