Skip to content

Commit e6492f9

Browse files
authored
Enable nullable: System.Management.Automation.Host.IHostUISupportsMultipleChoiceSelection (#14172)
1 parent 4480ee5 commit e6492f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,7 @@ public void Dispose()
12021202
/// by giving the user ability to select more than one choice. The PromptForChoice method available
12031203
/// in PSHostUserInterface class supports only one choice selection.
12041204
/// </summary>
1205+
#nullable enable
12051206
public interface IHostUISupportsMultipleChoiceSelection
12061207
{
12071208
/// <summary>
@@ -1226,9 +1227,10 @@ public interface IHostUISupportsMultipleChoiceSelection
12261227
/// implementation.
12271228
/// </returns>
12281229
/// <seealso cref="System.Management.Automation.Host.PSHostUserInterface.PromptForChoice"/>
1229-
Collection<int> PromptForChoice(string caption, string message,
1230-
Collection<ChoiceDescription> choices, IEnumerable<int> defaultChoices);
1230+
Collection<int> PromptForChoice(string? caption, string? message,
1231+
Collection<ChoiceDescription> choices, IEnumerable<int>? defaultChoices);
12311232
}
1233+
#nullable restore
12321234

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

0 commit comments

Comments
 (0)