Created
June 17, 2024 13:36
-
-
Save ChrisMoney/d5a94e372aabab11ebeb670e689983b3 to your computer and use it in GitHub Desktop.
Return two types C#
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, string, string) LookupName(long id) // tuple return type | |
{ | |
... // retrieve first, middle and last from data storage | |
return (first, middle, last); // tuple literal | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment