Destructuring assignment ? #8
-
|
Hi, Is destructuring assignment a thing in C# ? I think the answer to that question would be interesting to document. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
CharlieDigital
Nov 3, 2025
Replies: 1 comment 2 replies
-
|
Yes; it is possible for Tuple types and generally possible for any class that implements a See: https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/deconstruct#tuples |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
KaKi87
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes; it is possible for Tuple types and generally possible for any class that implements a
DeconstructSee: https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/deconstruct#tuples