Created
May 25, 2019 09:30
-
-
Save alistairjevans/4f385b0da684ede531e6ac2e837770b6 to your computer and use it in GitHub Desktop.
Value-Tuple basics
This file contains 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
(string value1, string value2) SomeFunc() | |
{ | |
return ("val1", "val2"); | |
} | |
void CallerFunction() | |
{ | |
var result = SomeFunc(); | |
Console.WriteLine(result.value1); // val1 | |
Console.WriteLine(result.value2); // val2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment