mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 21:13:05 +00:00
138501da2f
Condense some expressions Use less linq Rename some fields
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)]
|
|
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
|