-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to reference a method group in XML comment #45
Comments
+1 for me. I was just searching online for a solution and found this. This would be a nice change. Very often it seems like there are multiple signatures for a function and I can either ....
Another idea (maybe) would be to use a wildcard at the end |
+1 for me. |
+1 and me. I actually believe this worked before Roslyn, i.e. the method group would have been referenced by "Foo" only. On a related note, I would prefer if the Intellisense did not add the method parameters into the XML documentation unless I wanted to specifically refer the particular overload - especially I don't want the parameters if there is only one overload. But I guess that would be solved with this issue, if method groups were offered in the list. |
I can add that even the fully qualified overload does not work when documenting C++/CLR functions. The result in HTML docs is just |
We are now taking language feature discussion on https://github.com/dotnet/csharplang for C# specific issues, https://github.com/dotnet/vblang for VB-specific features, and https://github.com/dotnet/csharplang for features that affect both languages. |
Is this language feature discussion as it worked before and potentially regressed? |
@miloush I don't have evidence one way or the other, but if the behavior regressed it could make sense to open it as a bug report (regression) against the compiler. |
This issue has been moved to dotnet/csharplang#320 |
Currently the following works:
However, the following does not work:
The specific warning produced is:
To reference a method group, the following syntax is required:
This is problematic for the following reasons:
I propose the following changes:
O:
form listed above.The text was updated successfully, but these errors were encountered: