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