DocFX does not exclude protected members from sealed classes

Posted on December 7, 2021

It seems reasonable to exclude protected members of a sealed class from API documentation, as they will never be accessible to API users. According to a DocFX issue, “protected members in sealed class will be removed.” However, upon examining the source code for the latest stable release (v2.58.9), this is not true of the default filtering logic, nor is there currently any way to configure these members to be excluded from the documentation.