public static void EndDraw(this ID2D1DeviceContext context) => context?.EndDraw(IntPtr.Zero, IntPtr.Zero).ThrowOnError();
public static void EndDraw(this ID2D1DeviceContext device) => device?.EndDraw(out _, out _).ThrowOnError();
public static void EndDraw(this ID2D1DeviceContext context) => context?.EndDraw(IntPtr.Zero, IntPtr.Zero).ThrowOnError();
public static void EndDraw(this ID2D1DeviceContext device) => device?.EndDraw(out _, out _).ThrowOnError();