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