dotnet / dotnet/docs

Complete the Pattern matching section with deconstruction coverage and the introductory tutorial

Open
#55,928 0 comments 0 reactions 1 assignee Claimed by @BillWagner View on GitHub
:pushpin: seQUESTered dotnet-csharp/svc dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

[Everyday C# PR 21 — Pattern matching: deconstruction + tutorial](https://github.com/dotnet/docs/blob/EverydayCSharp/.github/projects/everyday-csharp/plan/phase-f-patterns-functional.md#pr-21--pattern-matching-deconstruction--tutorial)

PR 21 is the committed clean boundary that fully completes Pattern matching (§11). Once the overview/basic-pattern and advanced-pattern-form work is live, this closes the remaining core article gap and moves the introductory tutorial into Fundamentals, without pulling the optional Functional techniques tutorial into September's scope.

Revise `deconstruct.md` to cover records, tuples, custom `Deconstruct`, and mixed deconstructions at Fundamentals level. Pull `tutorials/patterns-objects.md` into `fundamentals/tutorials/pattern-matching.md`, updating snippets, `toc.yml`, and redirects (including the former `functional/deconstruct.md` path). Leave the advanced data-driven pattern tutorial where it is unless implementation finds a safe, already-planned move.

Done when §11 has no remaining planned core gaps, deconstruction coverage is coherent with tuples/records/custom Deconstruct/Discards, the tutorial is adapted with redirects, and no former `functional/` deconstruction path breaks. See the [Phase F plan](https://github.com/dotnet/docs/blob/main/.github/projects/everyday-csharp/plan/phase-f-patterns-functional.md) for scope.

---
[Associated WorkItem - 632370](https://dev.azure.com/msft-skilling/Content/_workitems/edit/632370)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.