Skip to content

Add ApplyConfiguration overload for older C# versions#9674

Merged
tobias-tengler merged 1 commit into
mainfrom
tte/add-apply-configuration-overload
May 11, 2026
Merged

Add ApplyConfiguration overload for older C# versions#9674
tobias-tengler merged 1 commit into
mainfrom
tte/add-apply-configuration-overload

Conversation

@tobias-tengler
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 11, 2026 15:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a compatibility overload for ConfigurationHelper.ApplyConfiguration so source-generator-produced code can compile for consumers using older C# language versions that cannot use expanded params ReadOnlySpan<T> calls.

Changes:

  • Added a params IDescriptorConfiguration[] overload that forwards to the existing params ReadOnlySpan<IDescriptorConfiguration> implementation via AsSpan().
  • Documented why both overloads exist and how newer compilers are expected to bind to the span-based overload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tobias-tengler tobias-tengler merged commit bdf8352 into main May 11, 2026
145 checks passed
@tobias-tengler tobias-tengler deleted the tte/add-apply-configuration-overload branch May 11, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants