Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.