-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor async checks to avoid CA2012 & other cleanup (#63)
* Refactor async checks to avoid CA2012 Fixes #57 * Update package dependencies * Rework invalid async handling & skip unreliable test
- Loading branch information
1 parent
612ed4a
commit 206ee70
Showing
7 changed files
with
199 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#if NETSTANDARD2_0 | ||
namespace System.Diagnostics.CodeAnalysis; | ||
|
||
/// <summary> | ||
/// Specifies that when a method returns <see cref="System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.ReturnValue"/>, | ||
/// the parameter will not be null even if the corresponding type allows it. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)] | ||
internal sealed class NotNullWhenAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Initializes the attribute with the specified return value condition. | ||
/// </summary> | ||
/// <param name="returnValue">The return value condition. If the method returns this value, the associated parameter will not be null.</param> | ||
public NotNullWhenAttribute(bool returnValue) | ||
{ | ||
ReturnValue = returnValue; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the return value condition. | ||
/// </summary> | ||
public bool ReturnValue { get; } | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.