Skip to content

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented Jan 27, 2025

Fixes #43926

You can match a property against the { } pattern to match any non-null property. Add an example of that construct.


Internal previews

📄 File 🔗 Preview link
docs/csharp/fundamentals/functional/pattern-matching.md Pattern matching overview

Fixes dotnet#43926

You can match a property against the `{ }` pattern to match any non-null property. Add an example of that construct.
@BillWagner BillWagner requested a review from a team as a code owner January 27, 2025 19:01
@dotnetrepoman dotnetrepoman bot added this to the January 2025 milestone Jan 27, 2025
@BillWagner BillWagner requested a review from gewarren January 27, 2025 19:02
@BillWagner BillWagner enabled auto-merge (squash) January 27, 2025 19:02
@dotnet-policy-service dotnet-policy-service bot added okr-freshness OKR: Freshness of content okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. labels Jan 27, 2025
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

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

Something isn't hooked up correctly:

image

@BillWagner BillWagner merged commit fd34d69 into dotnet:main Jan 27, 2025
8 checks passed
@BillWagner BillWagner deleted the non-null-property-pattern branch January 27, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dotnet-csharp/svc fundamentals/subsvc okr-freshness OKR: Freshness of content okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include the { } property pattern

2 participants