X Tutup
Skip to content

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

Merged
iSazonov merged 3 commits intoPowerShell:masterfrom
powercode:nullable/IHostUISupportsMultipleChoiceSelection
Jan 9, 2021
Merged

Enable nullable: System.Management.Automation.Host.IHostUISupportsMultipleChoiceSelection#14172
iSazonov merged 3 commits intoPowerShell:masterfrom
powercode:nullable/IHostUISupportsMultipleChoiceSelection

Conversation

@powercode
Copy link
Copy Markdown
Collaborator

Tracking issue: #12631.

@ghost ghost assigned iSazonov Nov 19, 2020
Comment on lines 1233 to +1235

#nullable restore

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#nullable restore
#nullable restore

Comment on lines +1199 to +1200
#nullable enable

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please move to line 1206.

/// <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
Copy Markdown
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
Copy Markdown
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.

@ghost ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 20, 2020
@ghost ghost removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 20, 2020
@iSazonov iSazonov added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Nov 21, 2020
@ghost ghost added the Review - Needed The PR is being reviewed label Nov 30, 2020
@ghost
Copy link
Copy Markdown

ghost commented Nov 30, 2020

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

@iSazonov iSazonov merged commit e6492f9 into PowerShell:master Jan 9, 2021
@ghost ghost removed the Review - Needed The PR is being reviewed label Jan 9, 2021
@iSazonov iSazonov added this to the 7.2.0-preview.3 milestone Jan 9, 2021
@powercode powercode deleted the nullable/IHostUISupportsMultipleChoiceSelection branch January 13, 2021 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup