We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add an extension to KeyValuePair<TKey, TValue> that mirrors https://learn.microsoft.com/en-US/dotnet/api/system.collections.generic.keyvaluepair-2.deconstruct?view=net-7.0
KeyValuePair<TKey, TValue>
The extension allows for KeyValuePairs to be deconstructed in scenarios such as
foreach ((var k, var v) in dict) { // ... }
https://learn.microsoft.com/en-US/dotnet/api/system.collections.generic.keyvaluepair-2.deconstruct?view=net-7.0 Allows the compiler to deconstruct KeyValuePairs in tuple patterns or other tuple-like scenarios
Not known
None
The text was updated successfully, but these errors were encountered:
I think this is a duplicate with #6 , same things discussed (also support for Deconstruct extensions methods)
Sorry, something went wrong.
No branches or pull requests
Description (optional)
Add an extension to
KeyValuePair<TKey, TValue>
that mirrors https://learn.microsoft.com/en-US/dotnet/api/system.collections.generic.keyvaluepair-2.deconstruct?view=net-7.0Rationale
The extension allows for KeyValuePairs to be deconstructed in scenarios such as
Proposed API
https://learn.microsoft.com/en-US/dotnet/api/system.collections.generic.keyvaluepair-2.deconstruct?view=net-7.0 Allows the compiler to deconstruct KeyValuePairs in tuple patterns or other tuple-like scenarios
Drawbacks
Not known
Alternatives
Not known
Other thoughts
None
The text was updated successfully, but these errors were encountered: