<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.2.25163.9" />

NullHandle<T>

using System.Runtime.CompilerServices; namespace Windows.Win32.Foundation { internal class NullHandle<[IsUnmanaged] T> : IHandle<T> where T : struct { [Nullable(new byte[] { 1, 0 })] [field: Nullable(new byte[] { 1, 0 })] public static NullHandle<T> Instance { [return: Nullable(new byte[] { 1, 0 })] get; } = new NullHandle<T>(); public T Handle => default(T); private NullHandle() { } } }