Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created November 28, 2022 17:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lgolubyev/78c7158472fc65075bef09bdbd489d11 to your computer and use it in GitHub Desktop.
void Method(ref int refArgument)
{
refArgument = refArgument + 44;
}
int number = 1;
Method(ref number);
Console.WriteLine(number);
// Output: 45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment