mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-30 07:50:32 +00:00
59fad0e8cf
Extract some logic (origin markings) Revise directives for NET7 targeting, remove old net5 refs
16 lines
617 B
C#
16 lines
617 B
C#
#if !NET6_0_OR_GREATER
|
|
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
|