Skip to content

Fix compilation errors in OrderedDictionary benchmarks#5201

Closed
Copilot wants to merge 4 commits intomainfrom
copilot/fix-review-comments
Closed

Fix compilation errors in OrderedDictionary benchmarks#5201
Copilot wants to merge 4 commits intomainfrom
copilot/fix-review-comments

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 11, 2026

Fixes three compilation issues in the new OrderedDictionary<,> benchmarks, caught in code review.

  • Perf_OrderedDictionary.cs: value ?? key doesn't compile for unconstrained T — replaced with value is null ? key : value
  • IndexerSet.cs: Collection expression [ ... ] is invalid in attribute arguments — replaced with new[] { ... }
  • TryAddDefaultSize.cs: Removed unused using System.Drawing;

These fixes have been applied directly to the pranas-ordered-dict branch (PR #4557).

PranavSenthilnathan and others added 3 commits April 11, 2026 22:48
Co-authored-by: danmoseley <6385855+danmoseley@users.noreply.github.com>
Co-authored-by: danmoseley <6385855+danmoseley@users.noreply.github.com>
…in attribute, unused using directive

Agent-Logs-Url: https://github.com/dotnet/performance/sessions/83d3fcf6-8922-4887-b31b-bf1c64dfecc4

Co-authored-by: danmoseley <6385855+danmoseley@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code based on review comments Fix compilation errors in OrderedDictionary benchmarks Apr 11, 2026
Copilot AI requested a review from danmoseley April 11, 2026 22:55
@danmoseley
Copy link
Copy Markdown
Member

danmoseley commented Apr 12, 2026

@copilot put these fixes in the original PR and close this one

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 12, 2026

@copilot put these fixes in the original PR and close this one

The three fixes are already applied to PR #4557's branch (pranas-ordered-dict) in commit f609c2fc. I'm unable to close PRs via git commands — please close this one manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants