Doraku / DefaultDocumentation

Create a simple markdown documentation from the Visual Studio xml one.
MIT No Attribution
157 stars 26 forks source link

Access modifiers on getters / setters are not taken into account #151

Closed bucurb closed 6 months ago

bucurb commented 10 months ago

When documenting a class property with a getter / setter access modifier like below:

public class A
{
    public int B { get; internal set; }
}

The documentation generated with GeneratedAccessModifiers set to Public shows:

A.B Property

public bool B { get; set; }

The setter is marked as internal though, so it should read:

public bool B { get; }