Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Desconstruction in C# 7
int existingVariableForHighest = 99;
int existingVariableForLowest = 1;
(existingVariableForHighest, existingVariableForLowest) = GetLowestHighest(numbers);
Console.WriteLine(existingVariableForHighest);
Console.WriteLine(existingVariableForLowest);
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.