Skip to content

Conversation

@BillWagner
Copy link
Member

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.

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.
@ghost ghost added the area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. label Apr 9, 2021
@opbld30
Copy link

opbld30 commented Apr 9, 2021

Docs Build status updates of commit 43787ea:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Diagnostics.CodeAnalysis/AllowNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/DisallowNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/DoesNotReturnAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/DoesNotReturnIfAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MaybeNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MaybeNullWhenAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MemberNotNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MemberNotNullWhenAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/NotNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/NotNullIfNotNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/NotNullWhenAttribute.xml ✅Succeeded View

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:

BillWagner and others added 2 commits April 12, 2021 13:07
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
- add a "Related" tag" - fix typo shown in review comments.
@BillWagner
Copy link
Member Author

Thanks @gewarren

I added the changes you requested.

@opbld34
Copy link

opbld34 commented Apr 12, 2021

Docs Build status updates of commit cc68f00:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Diagnostics.CodeAnalysis/AllowNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/DisallowNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/DoesNotReturnAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/DoesNotReturnIfAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MaybeNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MaybeNullWhenAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MemberNotNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MemberNotNullWhenAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/NotNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/NotNullIfNotNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/NotNullWhenAttribute.xml ✅Succeeded View

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:

@opbld32
Copy link

opbld32 commented Apr 12, 2021

Docs Build status updates of commit 9f935d1:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Diagnostics.CodeAnalysis/AllowNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/DisallowNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/DoesNotReturnAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/DoesNotReturnIfAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MaybeNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MaybeNullWhenAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MemberNotNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/MemberNotNullWhenAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/NotNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/NotNullIfNotNullAttribute.xml ✅Succeeded View
xml/System.Diagnostics.CodeAnalysis/NotNullWhenAttribute.xml ✅Succeeded View

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&lt;Enum&gt; ReadJson(JsonReader reader, Type objectType, ISet&lt;Enum&gt;? 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&lt;Enum&gt; ReadJson(JsonReader reader, Type objectType, ISet&lt;Enum&gt;? 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>
Copy link
Member Author

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.

Copy link
Contributor

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 ?

@BillWagner BillWagner merged commit 8298b5e into dotnet:main Apr 12, 2021
@BillWagner BillWagner deleted the link-to-attribute-conceptual-docs branch April 12, 2021 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable.

6 participants