1
init properties get the wrong documentation
Question asked by Neil S. - 1/31/2022 at 7:06 AM
Answered
If I have a property defined like this:

public double Value { get; init; }
I would expect the documentation to say:
/// <summary>
/// Gets the value.
/// </summary>

But instead I get:

/// <summary>
/// Gets or sets the value.
/// </summary>

Looking at the properties template, the 'gets or sets' is auto generated via a macro $(PropertyAccessText), which I cannot alter.  

How can I generate the correct comments?

5 Replies

Reply to Thread
0
Misha Zhutov Replied
Employee Post
Hi Neil, 

Thank you for reporting that. We will fix that and get back to you shortly.
0
Misha Zhutov Replied
Employee Post
Hi Neil, 

We fixed the issue. Please contact us at support@submain.com if you need an interim build.

0
Neil S. Replied
When will the next build be released?
0
Misha Zhutov Replied
Employee Post
The next build will be published this week. 
0
Misha Zhutov Replied
Employee Post Marked As Answer
We addressed the issue in our latest build v2022.1.22055. Please download it from https://submain.com/download/ghostdoc/pro/

Reply to Thread