public static void DestroyWindow(string winName) { if (String.IsNullOrEmpty("winName")) throw new ArgumentNullException(nameof(winName)); NativeMethods.highgui_destroyWindow(winName); }