Skip to content

Instantly share code, notes, and snippets.

@ChrisMoney
Created June 17, 2024 13:36
Show Gist options
  • Save ChrisMoney/d5a94e372aabab11ebeb670e689983b3 to your computer and use it in GitHub Desktop.
Save ChrisMoney/d5a94e372aabab11ebeb670e689983b3 to your computer and use it in GitHub Desktop.
Return two types C#
(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