Auto deconstructing class and records #10265
-
|
Deconstructing like: But without need to make Deconstruct method inside record/class, c# can do it automatically like JS: It can be helpful to be able to deconstruct e.g DTO in arg line in method: Maybe it working on c# already and i don't know, but i think no, because without "Deconstruct" method i have an error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.

#8707