I am using GhostDoc and Visual Studio 2017.
Now, if I have a method like this
public string Foo() { ... }
I can normally use GhostDocs "Document this" to generate an XML comment for the relevant method.
However, if the method has any attributes applied to it, e.g.
[NotNull]
public string Foo() { ... }
GhostDoc cannot automatically document the method. Why is that? Since fairly all of my methods are annotated, being unable to use GhostDoc is not very comfortable.
- Is there any way that GhostDoc can document methods with attributes?
And by the way: I tried to add the comments manually by inserting ///
between the attribute and the method, which yields a
XML comment is not placed on a valid language element
error.
however, if I insert the ///
before the attribute, I don't get the error. I feel like even when adding the ///
between the method and attribute, the comment is applied to the method and should therefore be placed on a valid language element, shouldn't it?