Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,7 @@ public void Dispose()
/// 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>
Expand All @@ -1225,9 +1226,10 @@ public interface IHostUISupportsMultipleChoiceSelection
/// 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,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add in XML comment - implementations should never return null.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be a compiler warning - I don't see the point of stating the obvious.

Collection<ChoiceDescription> choices, IEnumerable<int>? defaultChoices);
}
#nullable restore

/// <summary>
/// Helper methods used by PowerShell's Hosts: ConsoleHost and InternalHost to process
Expand Down