Skip to content

Commit d0d7f62

Browse files
authored
Merge pull request #37 from AppCoreNet/dev
Release 0.4.4
2 parents 1072bce + c876f76 commit d0d7f62

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Licensed under the MIT License.
2+
// Copyright (c) 2022 the AppCore .NET project.
3+
4+
#if !NETCOREAPP3_0_OR_GREATER && !NETSTANDARD2_1 && ENABLE_NULLABLE
5+
6+
namespace System.Diagnostics.CodeAnalysis
7+
{
8+
[AttributeUsage(AttributeTargets.Parameter)]
9+
public class MaybeNullWhenAttribute : Attribute
10+
{
11+
public bool ReturnValue { get; }
12+
13+
public MaybeNullWhenAttribute(bool returnValue)
14+
{
15+
ReturnValue = returnValue;
16+
}
17+
}
18+
}
19+
20+
#endif

0 commit comments

Comments
 (0)