<PackageReference Include="System.Drawing.Common" Version="8.0.0" />

NotNullIfNotNullAttribute

using System.Runtime.CompilerServices; namespace System.Diagnostics.CodeAnalysis { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] [AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = true, Inherited = false)] internal sealed class NotNullIfNotNullAttribute : Attribute { public string ParameterName { get; } public NotNullIfNotNullAttribute(string parameterName) { ParameterName = parameterName; } } }