-
-
Save lgolubyev/276ac91c0240e0ce55b25d1a9d90a980 to your computer and use it in GitHub Desktop.
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
int initializeInMethod; | |
OutArgExample(out initializeInMethod); | |
Console.WriteLine(initializeInMethod); // value is now 44 | |
void OutArgExample(out int number) | |
{ | |
number = 44; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment