-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sdk/dotnet] Improve collection initializers #8498
Conversation
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
1 similar comment
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
@justinvp I've applied your suggested changes. |
/run-acceptance-tests |
Please view the results of the PR Build + Acceptance Tests Run Here |
Thanks, @gitfool! I don't know what the original intention was behind the use of |
Note: I do have a practical case in mind that lead me to submitting this - succinctly combining dependencies in their various forms. FWIW, it's a shame we couldn't make a breaking change to remove the |
/run-acceptance-tests |
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
Please view the results of the PR Build + Acceptance Tests Run Here |
1 similar comment
Please view the results of the PR Build + Acceptance Tests Run Here |
@justinvp checking in on this, can we merge this as-is or should take some changes first? I'm on board with the changes for the functionality, I don't index on the C# being idiomatic as highly, so long as this is discoverable. |
9dfecec
to
95e127a
Compare
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
I made some follow-up changes to hopefully address concerns but still augment the collection initializers, albeit in a non-standard way, bearing in mind the extensive use of these collections. |
/run-acceptance-tests |
Please view the results of the PR Build + Acceptance Tests Run Here |
@t0yv0 the many acceptance test failures look unrelated to this change. |
Thank you for this contribution 🎉 It got accepted via #8582 |
Fixes #8497. See the InputMapCollectionInitializers and InputListCollectionInitializers tests for examples of flexibility and usability.