Skip to content

Instantly share code, notes, and snippets.

@alistairjevans
Created May 25, 2019 09:30
Show Gist options
  • Save alistairjevans/cb90a8969df62356174153740f61f6c9 to your computer and use it in GitHub Desktop.
Save alistairjevans/cb90a8969df62356174153740f61f6c9 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