private StructArrayMarshaller <TASKDIALOG_BUTTON> MarshalButtons(List <TaskDialogButton> buttons)
        {
            if (buttons.Count == 0)
            {
                return(new StructArrayMarshaller <TASKDIALOG_BUTTON>());
            }

            TASKDIALOG_BUTTON[] results = new TASKDIALOG_BUTTON[buttons.Count];
            for (int i = 0; i < results.Length; i++)
            {
                results[i]               = new TASKDIALOG_BUTTON();
                results[i].nButtonID     = buttons[i].Id;
                results[i].pszButtonText = buttons[i].Text;
            }

            return(new StructArrayMarshaller <TASKDIALOG_BUTTON>(results));
        }
        private StructArrayMarshaller<TASKDIALOG_BUTTON> MarshalButtons(List<TaskDialogButton> buttons)
        {
            if (buttons.Count == 0)
                return new StructArrayMarshaller<TASKDIALOG_BUTTON>();

            TASKDIALOG_BUTTON[] results = new TASKDIALOG_BUTTON[buttons.Count];
            for (int i = 0; i < results.Length; i++)
            {
                results[i] = new TASKDIALOG_BUTTON();
                results[i].nButtonID = buttons[i].Id;
                results[i].pszButtonText = buttons[i].Text;
            }

            return new StructArrayMarshaller<TASKDIALOG_BUTTON>(results);
        }