Support C# 13 params collections in argument matching - #993
Merged
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
dtchepak
previously approved these changes
Aug 10, 2026
dtchepak
left a comment
Member
There was a problem hiding this comment.
LGTM 👍
Some random, non-blocking comments so feel free to ignore them and merge.
dtchepak
approved these changes
Aug 11, 2026
This was referenced Aug 11, 2026
This was referenced Aug 29, 2026
fix: Bump the minor-patch-updates group with 3 updates
intility/Authorization-Azure-GuestPolicies#69
Merged
Open
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #905
Currently we support
paramsfor arrays only, while since C# 13 we could have many more types here. This PR adds support for that. I deprecated some of the code instead of deleting it just to play safe.I tried to keep all params syntax knowledge in one class, so it's easy to maintain our interop with language. I also extracted all tests into a partial class - so it's easier to maintain it, as argument matching spec is growing quite a lot.
Notice, we still don't support
Span/ReadOnlySpanprimarily due to luck of support by the proxy library. I mentioned that in #992 so it's not lost.