Commit d368735
Fix Collection builder example to be well-behaved with proper buffer allocation (#47994)
* Initial plan
* Initial analysis and problem verification
Co-authored-by: BillWagner <[email protected]>
* Fix LineBuffer to be well-behaved collection
Co-authored-by: BillWagner <[email protected]>
* Update docs/csharp/language-reference/operators/snippets/shared/CollectionExpressionExamples.cs
* Fix LineBuffer buffer allocation to use exact size needed
Co-authored-by: BillWagner <[email protected]>
* Update docs/csharp/language-reference/operators/snippets/shared/operators.csproj
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: BillWagner <[email protected]>
Co-authored-by: Bill Wagner <[email protected]>1 parent ea8459a commit d368735
File tree
1 file changed
+26
-5
lines changed1 file changed
+26
-5
lines changedLines changed: 26 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
24 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
25 | 46 | | |
26 | 47 | | |
27 | 48 | | |
| |||
0 commit comments