Skip to content

Add a generic static property#51317

Merged
BillWagner merged 3 commits intodotnet:mainfrom
BillWagner:more-extension-examples
Jan 26, 2026
Merged

Add a generic static property#51317
BillWagner merged 3 commits intodotnet:mainfrom
BillWagner:more-extension-examples

Conversation

@BillWagner
Copy link
Member

@BillWagner BillWagner commented Jan 26, 2026

The generic extensions didn't include a property

Fixes #50362

The generic extensions didn't include a property

Fixes #dotnet#50362
@BillWagner BillWagner requested a review from a team as a code owner January 26, 2026 21:18
Copilot AI review requested due to automatic review settings January 26, 2026 21:18
@dotnetrepoman dotnetrepoman bot added this to the January 2026 milestone Jan 26, 2026
@BillWagner BillWagner closed this Jan 26, 2026
@BillWagner BillWagner reopened this Jan 26, 2026
Copy link
Contributor

Copilot AI left a comment

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 adds a static property to the generic extension block example in the C# language reference documentation. The addition parallels the existing Identity property found in the non-generic static extension example.

Changes:

  • Added a static Empty property to the generic extension block that returns an empty sequence of the receiver's element type

BillWagner and others added 2 commits January 26, 2026 16:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@BillWagner BillWagner enabled auto-merge (squash) January 26, 2026 21:31
@BillWagner BillWagner merged commit 90dcb9b into dotnet:main Jan 26, 2026
9 checks passed
@BillWagner BillWagner deleted the more-extension-examples branch January 26, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add examples for new extension properties

3 participants