Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created November 28, 2022 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/276ac91c0240e0ce55b25d1a9d90a980 to your computer and use it in GitHub Desktop.
Save lgolubyev/276ac91c0240e0ce55b25d1a9d90a980 to your computer and use it in GitHub Desktop.
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