Skip to content

Slim conditional operator coverage in selection statements - #55613

Open
BillWagner wants to merge 2 commits into
dotnet:mainfrom
BillWagner:conditional-or-ternary
Open

Slim conditional operator coverage in selection statements#55613
BillWagner wants to merge 2 commits into
dotnet:mainfrom
BillWagner:conditional-or-ternary

Conversation

@BillWagner

@BillWagner BillWagner commented Aug 20, 2026

Copy link
Copy Markdown
Member

Copilot AI lite review requested due to automatic review settings August 20, 2026 14:22
@dotnetrepoman dotnetrepoman Bot added this to the August 2026 milestone Aug 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR slims coverage of the conditional operator within the C# selection-statements documentation, in preparation for moving fuller conditional-operator guidance to the Expressions/operators content (dependent on #55469).

Changes:

  • Removed the ?: (ternary) example from the selection-statements snippet program.
  • Reworked the “Conditional operator ?:” section in selection.md to avoid referencing content that depends on #55469 (and updated ms.date).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/csharp/fundamentals/statements/snippets/selection-statements/Program.cs Removes the conditional-operator example method and its invocation from the selection-statements snippets.
docs/csharp/fundamentals/statements/selection.md Updates the conditional-operator section content (currently via a placeholder comment) and refreshes the article date.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/csharp/fundamentals/statements/selection.md Outdated
)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@BillWagner
BillWagner force-pushed the conditional-or-ternary branch from 0e3f7bd to f8bb885 Compare August 20, 2026 21:17
@BillWagner
BillWagner marked this pull request as ready for review August 20, 2026 21:23
@BillWagner
BillWagner requested a review from a team as a code owner August 20, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Everyday C#: Slim conditional-operator coverage in Selection statements

2 participants