Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created Nov 28, 2022
Embed
What would you like to do?
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