Enable nullable: System.Management.Automation.Host.IHostUISupportsMultipleChoiceSelection (#14172)

This commit is contained in:
Staffan Gustafsson
2021-01-09 12:40:02 +05:00
committed by GitHub
parent 4480ee521e
commit e6492f9169
@@ -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.
/// </summary>
#nullable enable
public interface IHostUISupportsMultipleChoiceSelection
{
/// <summary>
@@ -1226,9 +1227,10 @@ namespace System.Management.Automation.Host
/// implementation.
/// </returns>
/// <seealso cref="System.Management.Automation.Host.PSHostUserInterface.PromptForChoice"/>
Collection<int> PromptForChoice(string caption, string message,
Collection<ChoiceDescription> choices, IEnumerable<int> defaultChoices);
Collection<int> PromptForChoice(string? caption, string? message,
Collection<ChoiceDescription> choices, IEnumerable<int>? defaultChoices);
}
#nullable restore
/// <summary>
/// Helper methods used by PowerShell's Hosts: ConsoleHost and InternalHost to process