You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDE0028 for collections with constructor arguments #57170
I would like to use collection expressions when they are plain collections (e.g. [1, 2, 3]) while still keep using the constructor form when passing constructor arguments such as capacity or comparers. Since the same code is used in both scenarios, I either turn it off entirely or live with red squiggles in the code.
It is also not really a short cut when we are initializing an empty container:
🟨 Confidence:medium - IDE0028 is a Roslyn IDE analyzer, but CODEOWNERS has no matching Area-Roslyn section.
➡️ Summary: Requests IDE0028 not flag collection initializations that need constructor arguments such as capacity or comparers. Likely belongs with the Roslyn IDE analyzer owners; team should confirm routing.
Generated by 🏷️ Issue Triage for #57170 · copilot · auto (Claude Sonnet 5.5) · ~16 AIC · ⌖ ~2 AIC · ⊞ 15.5K · ◷
Activity
github-actions commentedon Nov 17, 2026
🎯 Agentic Issue Triage
Triage Assessment:
medium- IDE0028 is a Roslyn IDE analyzer, but CODEOWNERS has no matching Area-Roslyn section.➡️ Summary: Requests IDE0028 not flag collection initializations that need constructor arguments such as capacity or comparers. Likely belongs with the Roslyn IDE analyzer owners; team should confirm routing.