加入可空特性相关stub,让下游net40应用具备可空特性判断能力。主要是Stardust和NewLife.IoT
大石头 authored at 2023-10-21 08:41:04
333.00 B
X
#if NETFRAMEWORK || NETSTANDARD2_0
namespace System.Diagnostics.CodeAnalysis;

/// <summary>返回可能为空</summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, Inherited = false)]
public sealed class MaybeNullAttribute : Attribute
{
}
#endif