The owner asked for C# 15 in the release that moved the main line to
.NET 11. The rule approved with the plan: a construct is used only
where the build, CodeQL and Qodana all read it. Each of the four was
written once, in a file of its own, and shown to each tool (draft pull
request #377, closed unmerged; spike-notes section 29):
- The compiler and every analyzer take collection expression arguments,
closed hierarchies and labeled jumps; a union draws CA1815 from the
SDK's own rules.
- ReSharper's engine - InspectCode 2026.2.3.1, which Qodana 2026.2
runs, and 2026.3.0 - reads none: `closed` and `union` are not parsed,
the other two are called preview features. On a gate of zero every
file using one would be an error.
- What CodeQL extracts of them is not established: a pull request's C#
analysis is an overlay on main's database and prints no per-file
result.
So beta.37 takes API, not syntax:
- sixteen char searches name their comparison through
string.StartsWith/EndsWith/LastIndexOf(char, StringComparison), where
they went through a span to satisfy .NET 10 and 11 alike;
- AgentLauncher finds the Agent it started with
Process.TryGetProcessById instead of a caught ArgumentException.
Nothing changes in what the software does.
codeql.yml takes workflow_dispatch, so a branch can have a full
analysis. 13_CI_CD (C# 15 and the analyses), 20_OPEN_QUESTIONS (a new
row, with what answers it), CLAUDE.md, the decisions index.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>