Deconstruction in C# allows us to return multiple values from types.
Using extension methods, we can deconstruct ANY type into ANY of its parts.
Let's hope we don't create any monsters #csharp #developer #dev
Tweet
Conversation
You inspired this:
6
7
26
Tweet Driven Development is the future
1
6
Show replies
And it's a C# 7 feature. I saw the tuple pattern matching stuff back then, but never occurred to me to look at user defined deconstruction.
1
Show replies
You can have multiple deconstructs, but the same rules apply as they do with Extension methods.
So the type one wins out as long as the deconstruction out parameters match.
1
youtube.com
How type deconstruction keeps your C# code clean
Check out my courses: https://nickchapsas.comBecome a Patreon and get source code access: https://www.patreon.com/nickchapsasHello everybody I'm Nick and in ...
To support overloads, I guess
1
2
Show replies
Show additional replies, including those that may contain offensive content
Show
Trending now
What’s happening
Holidays
LIVE
It's Groundhog Day!
#PamAndTommy
Now Streaming on Hulu
Promoted by Pam & Tommy on Hulu
R&B & soul · Trending
Summer Walker
2,881 Tweets
Variety
Last night
Whoopi Goldberg suspended from 'The View' for Holocaust remarks