mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-30 15:59:13 +00:00
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
#if !NET5
|
|
#pragma warning disable
|
|
// ReSharper disable once UnusedType.Global
|
|
|
|
namespace System.Runtime.CompilerServices
|
|
{
|
|
using Diagnostics;
|
|
using Diagnostics.CodeAnalysis;
|
|
|
|
/// <summary>
|
|
/// Reserved to be used by the compiler for tracking metadata.
|
|
/// This class should not be used by developers in source code.
|
|
/// </summary>
|
|
[ExcludeFromCodeCoverage, DebuggerNonUserCode]
|
|
internal static class IsExternalInit
|
|
{
|
|
}
|
|
}
|
|
|
|
namespace System.Diagnostics.CodeAnalysis
|
|
{
|
|
[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; }
|
|
}
|
|
}
|
|
#pragma warning restore
|
|
#endif
|