- Notifications
You must be signed in to change notification settings - Fork 1.6k
Add link from each attribute class to conceptual article #6626
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
Add link from each attribute class to conceptual article #6626
Conversation
See dotnet/csharplang#4623 (reply in thread) The conceptual article on these types covers all the attributes, including examples and scenarios for their use. Instead of replicating that, link to it so readers can quickly find all the information they need to annotate their APIs.
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
- add a "Related" tag" - fix typo shown in review comments.
| Thanks @gewarren I added the changes you requested. |
| Docs Build status updates of commit cc68f00: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
| Docs Build status updates of commit 9f935d1: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
| <summary>Specifies that <see langword="null" /> is allowed as an input even if the corresponding type disallows it.</summary> | ||
| <remarks>To override a method that has a parameter annotated with this attribute, use the <code>?</code> operator. For example: <code>override ISet<Enum> ReadJson(JsonReader reader, Type objectType, ISet<Enum>? existingValue, bool hasExistingValue, JsonSerializer serializer)</code>.</remarks> | ||
| <remarks>To override a method that has a parameter annotated with this attribute, use the <code>?</code> operator. For example: <code>override ISet<Enum> ReadJson(JsonReader reader, Type objectType, ISet<Enum>? existingValue, bool hasExistingValue, JsonSerializer serializer)</code>. For more information, see <see href="/dotnet/csharp/language-reference/attributes/nullable-analysis">Nullable static analysis</see> in the C# guide.</remarks> | ||
| <related type="Article" href="/dotnet/csharp/language-reference/attributes/nullable-analysis">Nullable static analysis</related> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gewarren Does this tag need to be under a different parent element? It's not showing up on the review site.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like the correct place. It seems to me you've uncovered a bug: I don't see any See Also sections being rendered for types, e.g. InvalidToolsetDefinitionException. However, I do see one being added for a method overload, and here's the source for that, so it's in the same place. Do you want to log a bug and assign to @mimisasouvanh ?
See dotnet/csharplang#4623 (reply in thread)
The conceptual article on these types covers all the attributes, including examples and scenarios for their use. Instead of replicating that, link to it so readers can quickly find all the information they need to annotate their APIs.