From 4a299e974224efff125339f776e17b4cdde6a945 Mon Sep 17 00:00:00 2001 From: David Hall Date: Mon, 1 May 2023 16:40:14 -0600 Subject: [PATCH] Fixed formatting --- PInvoke/Shell32/Clipboard.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/PInvoke/Shell32/Clipboard.cs b/PInvoke/Shell32/Clipboard.cs index b30e7323..4f41efac 100644 --- a/PInvoke/Shell32/Clipboard.cs +++ b/PInvoke/Shell32/Clipboard.cs @@ -1819,13 +1819,7 @@ namespace Vanara.PInvoke internal class ClipboardHDROPFormatter : IClipboardFormatter { - public object Read(IntPtr hGlobal) - { - return DROPFILES.DangerousGetFileList(hGlobal); - //SafeMoveableHGlobalHandle h = new(hGlobal, false); - //DROPFILES df = h.ToStructure(); - //return h.ToStringEnum(df.fWide ? CharSet.Unicode : CharSet.Ansi, Marshal.SizeOf(typeof(DROPFILES))).ToArray(); - } + public object Read(IntPtr hGlobal) => DROPFILES.DangerousGetFileList(hGlobal); public IntPtr Write(object value) => Write(value, Marshal.SystemDefaultCharSize != 1);