c# + pass class reference code example
Example: c# pass arg by reference
void Method(ref int refArgument)
{
// Second param will add to int refArgument
refArgument = refArgument + 44;
}
int number = 1;
Method(ref number);
Console.WriteLine(number);
// Output: 45