Created
December 24, 2022 19:46
-
-
Save scarletquasar/e9e58080f7a735ef5fb8996e73cec01c to your computer and use it in GitHub Desktop.
Deconstruction implementation C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test | |
{ | |
public void Deconstruct(out string a, out string b) | |
{ | |
a = "hello"; | |
b = "world"; | |
} | |
} | |
(string a, string b) = new Test(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment