mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-26 20:33:18 +00:00
17 lines
604 B
C#
17 lines
604 B
C#
|
#if !NET6
|
||
|
namespace System.Diagnostics.CodeAnalysis;
|
||
|
|
||
|
[AttributeUsage(AttributeTargets.Parameter)]
|
||
|
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
|