Skip to content

Instantly share code, notes, and snippets.

@alistairjevans
Created May 25, 2019 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alistairjevans/4f385b0da684ede531e6ac2e837770b6 to your computer and use it in GitHub Desktop.
Save alistairjevans/4f385b0da684ede531e6ac2e837770b6 to your computer and use it in GitHub Desktop.
Value-Tuple basics
(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