Commit e64f857
Update patterns.md with empty property pattern details (#49385)
* Update patterns.md with empty property pattern details
Clarify the behavior of the empty property pattern in C#.
* Add code example for empty property pattern
Added a code example demonstrating the use of an empty property pattern with variable creation in C#.
* Move sample to snippets.
Per conversation on #49385
* Update docs/csharp/language-reference/operators/patterns.md
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: Bill Wagner <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent 9721098 commit e64f857
File tree
2 files changed
+23
-0
lines changed- docs/csharp/language-reference/operators
- snippets/patterns
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
185 | 189 | | |
186 | 190 | | |
187 | 191 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
8 | 21 | | |
9 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
10 | 29 | | |
11 | 30 | | |
12 | 31 | | |
| |||
0 commit comments