Last active
October 19, 2016 04:20
-
-
Save NineMvp/ef1ac22aa783b3b27d4dd5905242fc98 to your computer and use it in GitHub Desktop.
c#7.0 out variables feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Run() | |
{ | |
OutVariables(out int x, out int y); | |
Console.Write($"{x}, {y}"); | |
} | |
void OutVariables(out int x, out int y) => x = (y = 2) * 2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment