Skip to content

Commit

Permalink
[create-pull-request] automated change (#1219)
Browse files Browse the repository at this point in the history
Co-authored-by: BillWagner <[email protected]>
  • Loading branch information
github-actions[bot] and BillWagner authored Nov 21, 2024
1 parent 7a021a9 commit 975eeed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
8 changes: 3 additions & 5 deletions standard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -742,11 +742,9 @@
- [§22.5.7.5](attributes.md#22575-the-doesnotreturnif-attribute) The DoesNotReturnIf attribute
- [§22.5.7.6](attributes.md#22576-the-maybenull-attribute) The MaybeNull attribute
- [§22.5.7.7](attributes.md#22577-the-maybenullwhen-attribute) The MaybeNullWhen attribute
- [§22.5.7.8](attributes.md#22578-the-membernotnull-attribute) The MemberNotNull attribute
- [§22.5.7.9](attributes.md#22579-the-membernotnullwhen-attribute) The MemberNotNullWhen attribute
- [§22.5.7.10](attributes.md#225710-the-notnull-attribute) The NotNull attribute
- [§22.5.7.11](attributes.md#225711-the-notnullifnotnull-attribute) The NotNullIfNotNull attribute
- [§22.5.7.12](attributes.md#225712-the-notnullwhen-attribute) The NotNullWhen attribute
- [§22.5.7.8](attributes.md#22578-the-notnull-attribute) The NotNull attribute
- [§22.5.7.9](attributes.md#22579-the-notnullifnotnull-attribute) The NotNullIfNotNull attribute
- [§22.5.7.10](attributes.md#225710-the-notnullwhen-attribute) The NotNullWhen attribute
- [§22.6](attributes.md#226-attributes-for-interoperation) Attributes for interoperation
- [§23](unsafe-code.md#23-unsafe-code) Unsafe code
- [§23.1](unsafe-code.md#231-general) General
Expand Down
12 changes: 6 additions & 6 deletions standard/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -873,10 +873,10 @@ The code-analysis attributes are declared in namespace `System.Diagnostics.CodeA
`AllowNull` ([§22.5.7.2](attributes.md#22572-the-allownull-attribute)) | A non-nullable argument may be null.
`DisallowNull` ([§22.5.7.3](attributes.md#22573-the-disallownull-attribute)) | A nullable argument should never be null.
`MaybeNull` ([§22.5.7.6](attributes.md#22576-the-maybenull-attribute)) | A non-nullable return value may be null.
`NotNull` ([§22.5.7.10](attributes.md#225710-the-notnull-attribute)) | A nullable return value will never be null.
`NotNull` ([§22.5.7.8](attributes.md#22578-the-notnull-attribute)) | A nullable return value will never be null.
`MaybeNullWhen` ([§22.5.7.7](attributes.md#22577-the-maybenullwhen-attribute)) | A non-nullable argument may be null when the method returns the specified `bool` value.
`NotNullWhen` ([§22.5.7.12](attributes.md#225712-the-notnullwhen-attribute)) | A nullable argument won’t be null when the method returns the specified `bool` value.
`NotNullIfNotNull` ([§22.5.7.11](attributes.md#225711-the-notnullifnotnull-attribute)) | A return value isn’t null if the argument for the specified parameter isn’t null.
`NotNullWhen` ([§22.5.7.10](attributes.md#225710-the-notnullwhen-attribute)) | A nullable argument won’t be null when the method returns the specified `bool` value.
`NotNullIfNotNull` ([§22.5.7.9](attributes.md#22579-the-notnullifnotnull-attribute)) | A return value isn’t null if the argument for the specified parameter isn’t null.
`DoesNotReturn` ([§22.5.7.4](attributes.md#22574-the-doesnotreturn-attribute)) | This method never returns.
`DoesNotReturnIf` ([§22.5.7.5](attributes.md#22575-the-doesnotreturnif-attribute)) | This method never returns if the associated `bool` parameter has the specified value.
Expand Down Expand Up @@ -1030,7 +1030,7 @@ Specifies that a non-nullable return value may be null.
Specifies that a non-nullable argument may be `null` when the method returns the specified `bool` value. This is similar to the `MaybeNull` attribute ([§22.5.7.6](attributes.md#22576-the-maybenull-attribute)), but includes a parameter for the specified return value.
#### 22.5.7.10 The NotNull attribute
#### 22.5.7.8 The NotNull attribute
Specifies that a nullable value will never be `null` if the method returns (rather than throwing).
Expand All @@ -1051,7 +1051,7 @@ Specifies that a nullable value will never be `null` if the method returns (rath
>
> When null reference types are enabled, method `ThrowWhenNull` compiles without warnings. When that method returns, the `value` argument is guaranteed to be not `null`. However, its acceptable to call `ThrowWhenNull` with a null reference. *end example*
#### 22.5.7.11 The NotNullIfNotNull attribute
#### 22.5.7.9 The NotNullIfNotNull attribute
Specifies that a return value isnt `null` if the argument for the specified parameter isnt `null`.
Expand All @@ -1074,7 +1074,7 @@ Specifies that a return value isn’t `null` if the argument for the specified p
>
> *end example*
#### 22.5.7.12 The NotNullWhen attribute
#### 22.5.7.10 The NotNullWhen attribute
Specifies that a nullable argument wont be `null` when the method returns the specified `bool` value.
Expand Down

0 comments on commit 975eeed

Please sign in to comment.