// ref binds to the caller's variable, so writes stick void Bump(ref int n) => n += 1; int x = 10; Bump(ref x); Console.WriteLine(x);
pass the variable itself