From e6492f9169147a42428147271dc2351b3fc696fc Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Sat, 9 Jan 2021 08:40:02 +0100 Subject: [PATCH] Enable nullable: System.Management.Automation.Host.IHostUISupportsMultipleChoiceSelection (#14172) --- .../engine/hostifaces/MshHostUserInterface.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs index 1e3da98da2..e6d40c7241 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs @@ -1202,6 +1202,7 @@ namespace System.Management.Automation.Host /// by giving the user ability to select more than one choice. The PromptForChoice method available /// in PSHostUserInterface class supports only one choice selection. /// +#nullable enable public interface IHostUISupportsMultipleChoiceSelection { /// @@ -1226,9 +1227,10 @@ namespace System.Management.Automation.Host /// implementation. /// /// - Collection PromptForChoice(string caption, string message, - Collection choices, IEnumerable defaultChoices); + Collection PromptForChoice(string? caption, string? message, + Collection choices, IEnumerable? defaultChoices); } +#nullable restore /// /// Helper methods used by PowerShell's Hosts: ConsoleHost and InternalHost to process