From 553ffd28bd7b03bab3dd4bfcb28cb48b7cf3bec9 Mon Sep 17 00:00:00 2001 From: Dan Siegel Date: Tue, 13 Jun 2023 09:11:25 -0600 Subject: [PATCH] chore: ensure a single definition for DialogResult --- src/Prism.Core/Dialogs/DialogResult.cs | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/Prism.Core/Dialogs/DialogResult.cs b/src/Prism.Core/Dialogs/DialogResult.cs index feaf6c318e..486f62bedf 100644 --- a/src/Prism.Core/Dialogs/DialogResult.cs +++ b/src/Prism.Core/Dialogs/DialogResult.cs @@ -7,7 +7,6 @@ namespace Prism.Dialogs; /// An that contains from the dialog /// and the of the dialog. /// -#if NET6_0_OR_GREATER public record DialogResult : IDialogResult { /// @@ -18,29 +17,10 @@ public record DialogResult : IDialogResult /// /// The parameters from the dialog. /// - public IDialogParameters Parameters { get; init; } + public IDialogParameters Parameters { get; init; } = new DialogParameters(); /// /// The result of the dialog. /// public ButtonResult Result { get; init; } = ButtonResult.None; } -#else -public class DialogResult : IDialogResult -{ - /// - /// An that was thrown by the DialogService - /// - public Exception? Exception { get; set; } - - /// - /// The parameters from the dialog. - /// - public IDialogParameters Parameters { get; set; } - - /// - /// The result of the dialog. - /// - public ButtonResult Result { get; private set; } = ButtonResult.None; -} -#endif