Skip to content

Modernize C# syntax through C# 14#478

Merged
eiriktsarpalis merged 3 commits into
mainfrom
eiriktsarpalis-use-field-keyword
Jul 16, 2026
Merged

Modernize C# syntax through C# 14#478
eiriktsarpalis merged 3 commits into
mainfrom
eiriktsarpalis-use-field-keyword

Conversation

@eiriktsarpalis

@eiriktsarpalis eiriktsarpalis commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • replace 27 accessor-owned backing fields with C# 14 field storage
  • adopt inferred modified lambda parameters, an extension block, unbound generic nameof, and first-class span receivers
  • apply 40 additional behavior-neutral modernizations, including target-typed construction, list/property patterns, switch expressions, ranges, and simplified accessors
  • preserve public API metadata and C# 12-compatible generated-source fixtures

Testing

  • make test (277,827 CLR tests and 29 Native AOT tests passed)

eiriktsarpalis and others added 2 commits July 15, 2026 20:03
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a7ca8f94-afd1-4378-a662-b1e88af400f4
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a7ca8f94-afd1-4378-a662-b1e88af400f4
@eiriktsarpalis eiriktsarpalis changed the title Use C# 14 field keyword for backing fields Adopt C# 14 language features Jul 15, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a7ca8f94-afd1-4378-a662-b1e88af400f4
@eiriktsarpalis eiriktsarpalis changed the title Adopt C# 14 language features Modernize C# syntax through C# 14 Jul 15, 2026
@eiriktsarpalis
eiriktsarpalis merged commit 66ad29f into main Jul 16, 2026
7 checks passed
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.

1 participant