diff --git a/src/Microsoft.Cci.Extensions/Writers/CSharp/CSharpWriter.cs b/src/Microsoft.Cci.Extensions/Writers/CSharp/CSharpWriter.cs index 93b286e91c9..083959de3c7 100644 --- a/src/Microsoft.Cci.Extensions/Writers/CSharp/CSharpWriter.cs +++ b/src/Microsoft.Cci.Extensions/Writers/CSharp/CSharpWriter.cs @@ -181,11 +181,11 @@ public override void Visit(ITypeDefinition parentType, IEnumerable newFields = new List(); - var includedVisibleFields = fields.Where(f => f.IsVisibleOutsideAssembly()).Where(_cciFilter.Include); + var includedVisibleFields = fields.Where(f => _cciFilter.Include(f)); includedVisibleFields = includedVisibleFields.OrderBy(GetMemberKey, StringComparer.OrdinalIgnoreCase); var excludedFields = fields.Except(includedVisibleFields).Where(f => !f.IsStatic);